Last post Aug 06, 2015 02:00 AM by B9678123
Aug 05, 2015 06:58 AM|B9678123|LINK
I have one admin page where admin can create another user. I am user CreateUserWizard for this purpose. There is one more CreateUserwizard on registration page but admin has another to create some internal users. On admin page I have below wizard. I have
done LoginCreatedUser=false and DisplayCancelButton=False but still when a new user is created, it login and a continue button is displayed.
I do not want the newly created user to logged in during admin session and also I don't want to see the continue button.The requirement is that once the user gets created, the admin should remain on the same page from where he is creating users say CreateUserByAdmin.aspx
and success message should displayed.
<asp:CreateUserWizard ID="RegisterUser" runat="server" EnableViewState="false" OnCreatedUser="RegisterUser_CreatedUser"
AutoGeneratePassword="False" CssClass="Button1" DisplayCancelButton="False"
Aug 06, 2015 12:15 AM|Nan Yu|LINK
. On admin page I have below wizard. I have done LoginCreatedUser=false and DisplayCancelButton=False but still when a new user is created, it login and a continue button is displayed.
Please try to remove the FormsAuthentication.SetAuthCookie() line from your code(in create user function) .FormsAuthentication.SetAuthCookie() sets a browser cookie to initiate the user's session.
I would like to suggest you to check the link below for the sample which shows how to customize the ASP.NET CreateUserWizard Control.
Aug 06, 2015 02:00 AM|B9678123|LINK
Hi Nan Yu,
Thanks for your input. It solves the problem. :)