Results 1 to 7 of 7

Thread: visual studio 2010 website template user database

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2008
    Posts
    407

    visual studio 2010 website template user database

    Has anyone deployed a website using the login database in the visual studio 2010 asp website template? I was wondering if I could look at someone's example to see how the integrated this into their website.
    My Websites
    SharpMP3 - MP3 Design Articles www.sharpmp3.com
    Yobbers - Job Search www.yobbers.com
    Lets Trend - Methods For Riding Stock Trends www.letstrend.com

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: visual studio 2010 website template user database

    Thread moved from 'ASP, VB Script' forum to 'ASP.Net' forum

  3. #3
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: visual studio 2010 website template user database

    jakkjakk, exactly which template are you referring to? Are you talking about the new "ASP.Net Web Site" template that comes which a few sample pages, and a Login Control etc?

    If so, what do you mean by integrating this into your website? The template would really be used as a starting point for your website. You would begin by adding additional pages to the template to complete the pages that you need.

    Gary

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2008
    Posts
    407

    Re: visual studio 2010 website template user database

    Yes that is exactly what I'm talking about. My problem is I don't really understand the database part of it. I'd like to add my own user data to it and I was wondering if there was an example out there that explained how to do that.
    My Websites
    SharpMP3 - MP3 Design Articles www.sharpmp3.com
    Yobbers - Job Search www.yobbers.com
    Lets Trend - Methods For Riding Stock Trends www.letstrend.com

  5. #5
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: visual studio 2010 website template user database

    Hey,

    You can do this through the ASP.Net Web Site Configuration Tool.

    If you created a Web Application, with the solution open, go to:

    - Project
    - ASP.Net Configuration

    If you created a Web Site, with the solution open go to:

    - Website
    - ASP.Net Configuration

    Then, go to the security tab, and create the users and roles that you want to use within your application. These will then get added to the database.

    Hope that helps!

    Gary

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2008
    Posts
    407

    Re: visual studio 2010 website template user database

    So say everytime a new user registers. I want a new table associated with that user to get created. With like date he registered, time, and a simple hello message. YOu can set that all up in the security tab? Because I thought the security tab was just for setting user's abilities.
    My Websites
    SharpMP3 - MP3 Design Articles www.sharpmp3.com
    Yobbers - Job Search www.yobbers.com
    Lets Trend - Methods For Riding Stock Trends www.letstrend.com

  7. #7
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: visual studio 2010 website template user database

    Hey,

    What you are referring to there would be Profile properties associated with a user. If you check my signature for a link called "Profile Provider", you will hopefully see what I mean.

    You wouldn't want to create a new row for each user, but rather add the necessary rows to an existing table for the new user. Creating a new table each time would lead to a high level of unmaintainability.

    You are not going to get any controls that do the Profile Provider work for you though, you are going to need to create your own UI that will allow the user to enter and edit their additional information. This can be done on a Member Page, or perhaps during the initial user creation by adding additional steps to the new user creation wizard.

    Gary

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width