Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Web Parts Personalization

Status
Not open for further replies.

robertfah

Programmer
Mar 20, 2006
380
US
Maybe my other post was too confusing. I'll try this again:

We've got a website that uses web parts and zones that allows users to 'personalize' their pages. This works fine if I add every user who comes to my site into the ASP.NET Manager through vs2005. Obviously this can't work in a production environment where users can register themselves for the site. My question is, how can I get my web app to authenticate a user in MY DB first (this is easily done), then authenticate them in the aspnetdb DB so they can use web parts and zones?
 
Ok, to get around the user authentication, I add the user manually, like so:

//Authenticate the user in the ASPNETDB personalization DB
if (Membership.GetUser(SiteData.UserInformation.Instance.WebLogin) == null)
{
//Create the user
MembershipUser newUser = Membership.CreateUser(SiteData.UserInformation.Instance.WebLogin, SiteData.UserInformation.Instance.Password);
Membership.ValidateUser(SiteData.UserInformation.Instance.WebLogin, SiteData.UserInformation.Instance.Password);
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top