Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old April 18th, 2006, 05:53 PM
Registered User
 
Join Date: Mar 2006
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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

  #2 (permalink)  
Old April 19th, 2006, 02:26 PM
Imar's Avatar
Wrox Author
Points: 71,804, Level: 100
Points: 71,804, Level: 100 Points: 71,804, Level: 100 Points: 71,804, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,050
Thanks: 80
Thanked 1,581 Times in 1,558 Posts
Default

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
  #3 (permalink)  
Old April 19th, 2006, 03:50 PM
Registered User
 
Join Date: Mar 2006
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

  #4 (permalink)  
Old April 19th, 2006, 04:01 PM
Imar's Avatar
Wrox Author
Points: 71,804, Level: 100
Points: 71,804, Level: 100 Points: 71,804, Level: 100 Points: 71,804, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,050
Thanks: 80
Thanked 1,581 Times in 1,558 Posts
Default

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

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
Help - Create a new user with admini tool Jack007 ASP.NET 2.0 Basics 1 November 4th, 2008 07:43 AM
user controls not sustaining on a wizard step!! kaliaparijat ASP.NET 2.0 Professional 1 June 6th, 2008 01:41 PM
[2.0] [create user wizard problem] manju.cdtech ASP.NET 2.0 Professional 0 May 9th, 2007 02:09 AM
User-Level Security Wizard acting funny Bob Bedell Access 1 January 7th, 2006 02:53 AM
How to prompt user Internet Connection Wizard? joan VS.NET 2002/2003 0 September 30th, 2003 11:31 PM



All times are GMT -4. The time now is 01:07 PM.


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