Community discussion forum

Login Page

  • 1 year ago

    Hi,

    Im a new developer and I am trying to create a login page using C# and ASP.NET.  Im having trouble figuring it out. Can someone help?

  • 1 year ago

    Hi,

    First off, welcome to the developing community, am sure everyone here will make you feel welcome.

    I don't have much experience of C#, i use VB.Net, however, i have built log in systems for several web sites now.

    First off, you need to decide if you are going to hold your credentials in a database or the web.config file, personally, i always choose database.  If you are using a database, see if you can make use of the new login controls in the .net 2 framework, they can save you a lot of time.

    If you are using the web.config, then you need to look into formsauthentication.  it is simple enough, i have used it many times with great results.

    And finally, do some research on the location element in the web.config file, that will help you restrict your directories to those that need to be authenticated and those that dont.

    I don't hvae a great deal of time to do examples, but if you get really stuck after reading up on the above, let me know and i will knock up a quick VB.Net example, am sure you will be able to get the idea from that.

    Si

  • 1 year ago

    hi mdubose ,
    There are several article's which shows how to create a login page using asp.net and c#.  Just checkout the given links as follows.

    1. http://www.daniweb.com/forums/thread6028.html (VB and Asp.net)

      According to me you should use 2nd example which is database driven login page and much lighter than asp:Menu control because it uses simple textbox and labels. On the other hand 1st example is based on asp.Menu control  and uses windows authentication model also assign role to each user. 
      Hence 1st one is more complicatred than 2nd one.
      Hope thid will help you.
      Thanks & Regards
      Dilipv
       
  • 1 year ago

    I used the ASP.NET configuration tool. It worked as far as creating users and a login page but I have a new issue.  Read below:

     

     I am have issues with creating this, seems like simple tasks.  I've used the ASP.NET cofiguration tool in create my users, which automatically created the aspnet database with a user table, application table and a membership table.  When creating my login page, I can log in with ease.  It just takes me to a blank page that I have created yet.  That's fine, but when I created that second page, using the Gridview and connecting it the the aspnet database, it throws and error or nothing comes up.  I've been working on this for 3 days now and I can't figure it out.  Can someone help, please.  It's very urgent.  Thanks.

  • 1 year ago

    Hi Slicksim,

     Thank you for you help before about the login page. Not to be a bother, is it possible to display a PDF document in a GridView or DetailsView using the Image Field?

  • 1 year ago

    Thank you for your help.   If possible could you show me some sample code of creating a login page using ASP.NET and VB.net.  I am aware you don't have much experience in C#.  I want to hold my credentials in a database, however, I don't think it would be possible for me to use the login control.  My login fields are username, password, and club.  The login control only have username and password fields.  I would greatly appreciate your assistance with this.  It's been boggling my mind for sometime.  Thank you.

Post a reply

Enter your message below

Sign in or Join us (it's free).

We'd love to hear what you think! Submit ideas or give us feedback