I am one of the worst when it comes to posting their code for demos -and as a result i try to stay away from demos that require code<g>
In this case not only am i posting my code- I am doing it BEFORE the presentation!
BTW For QLD folks i will be walking through the Membership Services, Role Services, Login Controls and Web Parts tonight
http://www.qmsdnug.org/
If you want to come along please rsvp by email to greg@qmsdnug.org (to help with pizza ordering)
Also if you are trying to setup the SMTP Mail be sure and see the following thread on how to get this set up:
http://www.mcse.ms/message1614187.html
Chuck
Web.Security.Membership.CreateUser(UserName.Text, pwd.Text, email.Text,
CreateUserlnk.Text = st.ToString
ValidateUserlnk.Text = Web.Security.Membership.ValidateUser(UserName.Text, pwd.Text).ToString
GetUserlnk.Text = usr.UserName
Suspendlnk.Text = usr.IsApproved.ToString
usr.IsApproved =
Membership.UpdateUser(usr)
Web.Security.Roles.CreateRole(rolename.Text)
Web.Security.Roles.AddUserToRole(UserName.Text, rolename.Text)
LinkButton13.Text = rls(0).ToString()
str = Web.Security.Roles.GetRolesForUser(UserName.Text)
Getroleslnk.Text = str(0)
inrolelnk.Text = Web.Security.Roles.IsUserInRole(UserName.Text, rolename.Text).ToString
Web.Security.Membership.DeleteUser(UserName.Text)
Web.Security.FormsAuthentication.RedirectFromLoginPage(UserName.Text,