Wrox Programmer Forums
|
ASP.NET 4 General Discussion For ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4 General Discussion 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
 
Old March 28th, 2012, 10:05 PM
Authorized User
 
Join Date: Dec 2011
Posts: 18
Thanks: 1
Thanked 0 Times in 0 Posts
Default aspnet_Users

Hi , i m trying to create membership user programmatically. ideally we can add User name and password (and optionally an e-mail address), and then use a membership function named CreateUser to create a new user in the membership system.which will create user in aspnet_Users table... but my requirement is i have to include additional information coming from other tables which will be foreign keys.... can this be done ... please advice.
Thanks
 
Old March 29th, 2012, 12:06 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

You could use the profile provider for that. Here's an article describing how to do it using a user interface but you could do the same using the API:

weblogs.asp.net/scottgu/archive/2005/10/18/427754.aspx

Cheers.

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!
The Following User Says Thank You to Imar For This Useful Post:
saifsid9 (April 5th, 2012)
 
Old April 8th, 2012, 04:29 PM
Authorized User
 
Join Date: Dec 2011
Posts: 18
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thanks for pointing me the correct direction. can you please tell if we can implement SQL Sitemap provider in MVC3 and give permission and roles to users instead of using the website.map. is there a close example i can look at . Thanks !!! looking forward for your reply
Saif





Similar Threads
Thread Thread Starter Forum Replies Last Post
Capture value in aspnet_USERS esherr01 BOOK: Beginning ASP.NET 4 : in C# and VB 8 September 25th, 2011 04:57 PM
Return UserId from aspnet_Users rao965 ASP.NET 2.0 Professional 4 July 12th, 2007 04:50 PM





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