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?
Parth48Asked:
Who is Participating?
 
Dave BaldwinConnect With a Mentor Fixer of ProblemsCommented:
There's a description and code here http://stackoverflow.com/questions/1142847/authentication-through-web-config-not-authenticating-in-asp-net-3-5 .  If you want to protect individual files, you must include some code in them.  The other pages that showed only authentication in web config protected entire directories, not individual files.
0
 
Kumaraswamy RCommented:
Hi

Walkthrough: Encrypting Configuration Information Using Protected Configuration

http://msdn.microsoft.com/en-us/library/dtkwfdky(v=vs.100).aspx
0
 
Dave BaldwinFixer of ProblemsCommented:
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.
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
Parth48Author Commented:
@DaveBaldwin : Protect that aspx page, when i open that aspx page it will prompt for username and password.
0
 
Dave BaldwinFixer of ProblemsCommented:
0
 
Parth48Author Commented:
@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
0
 
Parth48Author Commented:
@DaveBaldwin : which code i should include for individual file protection ?
0
 
Dave BaldwinFixer of ProblemsCommented:
Please read the articles that have been posted.
0
 
Parth48Author Commented:
Thank You
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.