|
Thanks, but I know what I meant. You should add this as a separate answer as it is equally as valid and should be able to be marked on it's own. (Not everyone uses principals, roles, etc, to model security).
|
|
|
|
|
Sorry some mistake was there i did not want to post the message to you..
Thanks.
|
|
|
|
|
the code which you have send where we have to write the code.and can you give small example for this...
|
|
|
|
|
Put this below attribute in the top of your Page Code behind and Name Parameter is the permitted user for this page....
[PrincipalPermission(SecurityAction.Demand,Name=@"kovairindia\palash",Unrestricted=false)]
Thanks
|
|
|
|
|
Use..
[PrincipalPermission(SecurityAction.Demand,Name=@"kovairindia\palash",Unrestricted=false)]
public partial class Test : System.Web.UI.Page
Only the user palash of domain Kovairindia will access this page. If Other one say rahul of Kovairindia domain will get System.Security.SecurityException exception.
N.B:You can also give a permission to a Role for your page.
|
|
|
|
|
Hi Guys,
Scenario:
i've finished an ASP.NET app. The users log on via a secure network anywhere in the world. When they've registered, they download a win app on their systems used to encrypt files. They select the files they want to encrypt, but don't knw the output path (for security reasons). When they log on, they should just click a button and all those encrypted files (from the output location) should be uploaded to the server.
Problem:
However, I do not knw how to automatically start the upload as I don't want them to manually pick the files (they don't even knw where the files are, but i do). Pls help. Deadline close.
He who goes for revenge must first dig two graves.
|
|
|
|
|
If you are having them run a Windows app then you have complete control over this. After the files have been encrypted push them to the location of your choice. What part are you stuck with?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Mark, they've got to be logged online and on the web page to let this happen. Pls how do I let this happen on a click of a button?
He who goes for revenge must first dig two graves.
|
|
|
|
|
A WebService is probably the easiet to start with. Have the Windows app send the files to the WebService. If you wanted to do it from the webpage you'd have to create a form, add the files, and submit it.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Sir,
I have developed one website in asp.net and try to send mail using smtp server in our local server.When i try to send messages using this system ,i got the following error
"MailBox unavailable.the server response was 5.7.1.unable to relay for dennyj@gmail.com"
if anyone knows about the problem,pls give me a help.
Thanks
Denny
|
|
|
|
|
you need to set smtp relay server settings once check whether your sent mail is in Badmail folder in inetpub.
|
|
|
|
|
the problem is exced number mail send
|
|
|
|
|
HI
Can any one kindly let me know how to create an api in .net for all plat forms e.g. web,windows,PDP etc, whats the best practice and if any one can provide me the code snippet i would be very thank ful to him, kindly reply asap,
regards,
|
|
|
|
|
One that's a very broad request, perhaps you could tell us what sort of API are you talking about.
Two, all the platforms are so different that if you could ever build one to cover all it would be so massive as to be unusable.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Firstly, you need to understand what you are talking about, which is painfully obvious that you don't. Research what an API actually is, then you will understand why this is a stupid question.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
How can i have textbox with default language(examplae :PersianOr Farsi)
|
|
|
|
|
Hello It set in Windows Language but you can set direction and text-align
with css like this
.txt
{
direction:rtl;
text-align:right;
}
then in aspx file in heading section you must write this code
<link href="StyleSheet.css" type="text/css" rel="Stylesheet" />
|
|
|
|
|
To show pass in TextBox with TextMode=Pass
use txtpasss.Attributes.Add("value",txtpass.Text);
But It is not security.
I want to encode pass and decode pass again when show it.
How can I do it?
Please help me
|
|
|
|
|
maituyet wrote: I want to encode pass and decode pass again when show it.
Could you pls elaborate this.
What is the use of showing password to the user.
In fact, you should not transfer the password from server to the client side.
|
|
|
|
|
Yes anurag is right plz elaborate so tht group can help..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
hi all........!
I have included "jquery.easing.1.2.js" in asp.net project but there generates a warning "Error updating JScript IntelliSense in asp.net".
please help..thanx
|
|
|
|
|
|
hi,
i am new in asp.net.. so dont know how to create dynamic menu.
i want to create dynamic menu and after clicking on that menu i want to show sub menu.
means home,customer,supplier these are menu and after clicking on customer i should show submenu in drop down manner add customer,delete customer..etc.
so please, help me...
|
|
|
|
|
You might be looking for Asp.net Menu Control.
Just google it, you will find out how you can use it in your code.
Its easy.
|
|
|
|
|