Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Basics
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 31st, 2009, 09:56 PM
Friend of Wrox
 
Join Date: Sep 2007
Location: , , .
Posts: 169
Thanks: 7
Thanked 2 Times in 2 Posts
Default Question about Asp.net Membership

Hi
I have a couple questions about asp.net membership.
First how does the asp.net configuration. Like where does it store the information? Like I created a user(and gave a role to it) in there and now I launched my site and I noticed when I went and registered the same user name it had the same role that was given to the one in the asp.net configuration.
So I made another user through the registration(not the asp.net configuration) and it did not have this role(what is a good thing). But I don't understand how it remembered that user and the role. Like I looked through the mssql tables and there is nothing about the role I made in the asp.net role table and before I registered there where no users in the "users" table.
So this has lead me to believe this stuff is stored somewhere else. What seems kinda weird to me why they have all these tables but they(microsoft) don't use them.
  #2 (permalink)  
Old April 2nd, 2009, 03:32 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Like, you know, the members and roles are stored in the database. Like, in the various aspnet_* tables. Like when you sign up for a user (like using the Login control) you get a record in, like, you know, aspnet_Users and in aspnet_Membership.

Like, maybe you are looking at the wrong database? Like you think you create them in one, but they end up in the App_Data folder of your website?

Like, all in all, the data for the Membership services *is* stored in the aspnetdb.mdf database by default (located in App_Data). Like, however, it's possible to change this location. Like this means you should find Users, Roles, Profile, Personalization and more in the database for your application.

Like which database did you check?

Like cheers,

Imar

(Like, sorry, I couldn't resist)
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
  #3 (permalink)  
Old April 2nd, 2009, 03:58 PM
Friend of Wrox
 
Join Date: Sep 2007
Location: , , .
Posts: 169
Thanks: 7
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by Imar View Post
Like, you know, the members and roles are stored in the database. Like, in the various aspnet_* tables. Like when you sign up for a user (like using the Login control) you get a record in, like, you know, aspnet_Users and in aspnet_Membership.

Like, maybe you are looking at the wrong database? Like you think you create them in one, but they end up in the App_Data folder of your website?

Like, all in all, the data for the Membership services *is* stored in the aspnetdb.mdf database by default (located in App_Data). Like, however, it's possible to change this location. Like this means you should find Users, Roles, Profile, Personalization and more in the database for your application.

Like which database did you check?

Like cheers,

Imar

(Like, sorry, I couldn't resist)
Ya this is what happened I did not set up a custom role provider so roles where being generated in the default aspnetdb and the other stuff was being generated in my customer table.
  #4 (permalink)  
Old April 2nd, 2009, 04:02 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Right; that indeed explains it. Funny auto database generation.... ;-)

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET Membership and ActiveDirectory Quick209 ASP.NET 2.0 Professional 0 June 13th, 2007 12:41 PM
Help with ASP.NET Membership VerbatimBOT SQL Server 2000 6 May 2nd, 2007 01:58 PM
Roles and membership asp.net 2 zeeshannasir ASP.NET 1.x and 2.0 Application Design 1 September 22nd, 2006 03:34 AM
Roles and membership asp.net 2 zeeshannasir ASP.NET 2.0 Basics 2 September 15th, 2006 07:24 AM
asp.net 2 custom membership provider andyw ASP.NET 2.0 Professional 24 September 6th, 2006 08:31 AM



All times are GMT -4. The time now is 08:52 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.