Solved login

Posted on 2011-05-04
Last Modified: 2012-06-27
How do I login 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.
Question by:jagguy
    1 Comment
    LVL 14

    Accepted Solution

    under appsettings, u can give

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

    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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
    One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on could not pull conte…
    This video discusses moving either the default database or any database to a new volume.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    758 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

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now