//update DNN User Email
string oldEmail = UserInfo.Email;
this.UserInfo.Email = txtEmail.Text;
UserController.UpdateUser(PortalId,this.UserInfo);
// Update User Email
MembershipUser oUser = Membership.GetUser(UserInfo.Username);
oUser.Email = txtEmail.Text;
Membership.UpdateUser(oUser);
//note: please assume you have a textbox with id txtEmail in your front end. you can
//take a static string email in place of txtEmail.Text
Monday, January 5, 2009
DotNetNuke Code Snippet: Update user email
Subscribe to:
Post Comments (Atom)
Popular Posts
-
Hi all, Creating a modal popup for asp.net users is always easy, its simply a modal panel, modal popup extender of asp.net ajax and all is ...
-
// using DotNetNuke.Entities.Portals; // using System.Collections; PortalAliasController paController = new PortalAliasController(); PortalA...
-
I was configuring one of our clients farm which required FBA on different web applications (around 5) and he wanted each web application sho...
thanks for this post
ReplyDeletei think in the same way but i forget
// Update User Email
MembershipUser oUser = Membership.GetUser(UserInfo.Username);
oUser.Email = txtEmail.Text;
Membership.UpdateUser(oUser);
now i will try it and i think it will working good
tanks