|
 |
BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8  | This is the forum to discuss the Wrox book Beginning ASP.NET 2.0 by Chris Hart, John Kauffman, David Sussman, Chris Ullman; ISBN: 9780764588501 |
|
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 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 .
|
 |
|
|

April 18th, 2006, 05:53 PM
|
Registered User
|
|
Join Date: Mar 2006
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
insert new value through user wizard tool
hello, i have a problem with the create user wizard i added a new column named serial to the aspnet_users table which is in the aspnetdb the default db that ships with visual studio, i have a register page that has the create user wizard and i added a step to the wizard to add the serial for the user which is a number like 1100,2200,3400....etc now i dont know how to add that serial to the new user? hope u can help me.thanks
|

April 19th, 2006, 02:26 PM
|
 |
Wrox Author
Points: 71,804, Level: 100 |
|
|
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,050
Thanks: 80
Thanked 1,581 Times in 1,558 Posts
|
|
Hi there,
First of all, just extending the aspnet_Users table might not be a good idea. You might run into troubles with future upgrades to the .NET Framework.
That said, there are a couple of ways to do what you want.
1) Create a class that inherits from MembershipUser and implement the Serial property. Probably a lot of work, and it might also mean you need to do some casting in the code that access the MembershipUser.
2) Store additional info in the Profile for each user. Scott Guthrie has written a nice article about that: http://weblogs.asp.net/scottgu/archi...18/427754.aspx
HtH,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
|

April 19th, 2006, 03:50 PM
|
Registered User
|
|
Join Date: Mar 2006
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
hello Imar, thanks for the reply and the link i already read the link but the problem is i just want to store that serial for the new user to use to show data for that user if it's not a good idea to add a column to the aspnet_users table so how i can assign the serial for each user can i store it in profile or something just need it to view some data belongs to the user, and as for the class i'm kind a beginner so i cant code that class if u have one or any site has that class just put it here and i would be thankful, waiting for ur reply .thanks
|

April 19th, 2006, 04:01 PM
|
 |
Wrox Author
Points: 71,804, Level: 100 |
|
|
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,050
Thanks: 80
Thanked 1,581 Times in 1,558 Posts
|
|
Quote:
quote:how i can assign the serial for each user can i store it in profile or something
|
Exactly; that's what the article is all about. Just store the additional data in the Profile object and access it from there.
Pretty easy to make, especially with the tutorial, so you may want to reread it and see if it fits your needs.
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |