?
Solved

asp.net login

Posted on 2011-05-04
1
Medium Priority
?
294 Views
Last Modified: 2012-06-27
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.
0
Comment
Question by:jagguy
1 Comment
 
LVL 14

Accepted Solution

by:
dejaanbu earned 2000 total points
ID: 35695738
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

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses
Course of the Month14 days, 11 hours left to enroll

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question