 |
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|

March 31st, 2009, 09:56 PM
|
Friend of Wrox
|
|
Join Date: Sep 2007
Posts: 169
Thanks: 7
Thanked 2 Times in 2 Posts
|
|
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.
|

April 2nd, 2009, 03:32 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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)
|

April 2nd, 2009, 03:58 PM
|
Friend of Wrox
|
|
Join Date: Sep 2007
Posts: 169
Thanks: 7
Thanked 2 Times in 2 Posts
|
|
Quote:
Originally Posted by Imar
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.
|

April 2nd, 2009, 04:02 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Right; that indeed explains it. Funny auto database generation.... ;-)
Imar
|
|
 |