Parth48
asked on
I want to encrypt aspx page through web.config file , but how can i do it ?
Hello Sir,
I want to encrypt aspx page through web.config file. When i open that particular page then it will prompt for username and password. Suppose i have 5 pages in my Asp.net web application.
For Ex.
temp.aspx
temp1.aspx
temp2.aspx
temp3.aspx
temp4.aspx
Now i want to encrypt temp3.aspx through web.config file, when i open webpage temp3.aspx then it will prompt for username and password,
How can i do it in Web.config?
I want to encrypt aspx page through web.config file. When i open that particular page then it will prompt for username and password. Suppose i have 5 pages in my Asp.net web application.
For Ex.
temp.aspx
temp1.aspx
temp2.aspx
temp3.aspx
temp4.aspx
Now i want to encrypt temp3.aspx through web.config file, when i open webpage temp3.aspx then it will prompt for username and password,
How can i do it in Web.config?
Do you mean 'encrypt' or 'protect'? Even if you do both, the information sent to the browser will be in plain text unless you purchase and install an SSL certificate to encrypt the connection.
ASKER
@DaveBaldwin : Protect that aspx page, when i open that aspx page it will prompt for username and password.
This page http://www.dotnetfunda.com/articles/article808-how-to-write-a-simple-login-page-in-aspnet.aspx may get you started.
ASKER
@DaveBaldwin : how can i do it in Web.config ? When i open aspx page on server then it will ask for username and password [e.g. Popup]. It relate to form authentication in web.config
Username and password must be stored in web.config.
No coding in C# , only setting in Web.config
Username and password must be stored in web.config.
No coding in C# , only setting in Web.config
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
@DaveBaldwin : which code i should include for individual file protection ?
Please read the articles that have been posted.
ASKER
Thank You
Walkthrough: Encrypting Configuration Information Using Protected Configuration
http://msdn.microsoft.com/en-us/library/dtkwfdky(v=vs.100).aspx