You must Sign In to post a response.
  • Category: ASP.NET

    About authencation in

    Any one can tell me the code how can go to the admin and user through login with username and password wit authentication.
  • #767611

    In we have 3 types of Authentications are available,

    1) Windows Authentication
    2) forms Authentication
    3) Passport Authentication

    As per your requirement I suspect that you are looking Forms Authentication, it works based on login credentials, you have to save those details in your database and validate it for future reference, to setup the authentication type you can open the web config in your project solution and wrote below piece of code over there.

    <authentication mode="Forms">
    <forms loginUrl="logon.aspx" name=".ASPXFORMSAUTH">

    For maintaining login credentials you may please refer below link this might be helpful to you how to maintain login info "".

    Hope this helps you...

    Give respect to your work, Instead of trying to impress your boss.

    Blog :

  • #767619
    If you want to differentiate admin and user role wise authentication then you need to define ROLE at the time of user creation and store them in database, after validating username and password when you logged in your application you need to check role of logged in user and then redirect it as per the role, OR you can use form authentication and as per that you can authenticate user
    see below link

    Editor, DotNetSpider MVM
    Microsoft MVP 2014 [ASP.NET/IIS]

Sign In to post your comments