asp.net login

How do I login asp.net with login,password textbox where the logins,passwords are store in weboconfig.

I forget how you store passwords/logins in webconfig.

It is just a simple example I am doing as usually I use a databse.
jagguyAsked:
Who is Participating?
 
dejaanbuConnect With a Mentor Commented:
under appsettings, u can give

<appSettings>
   
            <add key="password" value="ur Pass"/>
            <add key="login" value="Ur Login"/>
      
    </appSettings>

and in code u can access by using
string password = System.Configuration.ConfigurationManager.AppSettings("password").ToString();
string login = System.Configuration.ConfigurationManager.AppSettings("login").ToString();

Open in new window



as u know already, storing login info is not recommended though..but u can encrypt them
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.