locked
Allow User to Select Role during Create User Wizard RRS feed

  • Question

  • User-2049168291 posted

    Hello all,

    I am wanting to set up my create user wizard to allow the user to select which role they want.

    Essentially it would be a checkboxlist or dropdownlist with each option listed and the user would pick.

    It seems all the examples and samples I can find on this topic are in C#, however I am coding in VB. Can anyone point me in the direction of a tutorial on how to accomplish this task in VB?


    Thanks in advance for all help!

    Tuesday, January 15, 2013 2:00 PM

Answers

  • User-1023471226 posted

    You can find sample code about customizing the createUser Wizard control in the following link. Here you can see how to 
    access parts of the createUser Wizard control. In the second link you can see how to manage roles using Microsoft
    CreateUser Wizard control using Visua Basic. Note thatin both cases you have the option of selecting the VB and C# tab. 

    http://msdn.microsoft.com/en-us/library/ms178342(v=vs.100).aspx
    http://msdn.microsoft.com/en-us/library/system.web.security.roles.addusertorole(v=vs.100).aspx

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, January 15, 2013 8:27 PM

All replies

  • User-1023471226 posted

    You can find sample code about customizing the createUser Wizard control in the following link. Here you can see how to 
    access parts of the createUser Wizard control. In the second link you can see how to manage roles using Microsoft
    CreateUser Wizard control using Visua Basic. Note thatin both cases you have the option of selecting the VB and C# tab. 

    http://msdn.microsoft.com/en-us/library/ms178342(v=vs.100).aspx
    http://msdn.microsoft.com/en-us/library/system.web.security.roles.addusertorole(v=vs.100).aspx

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, January 15, 2013 8:27 PM
  • User-166373564 posted

    Hi PRSportsPerformance

    This is also available for you to convert C# to VB.NET below,

    <o:p>convert C# to VB.NET - </o:p>http://www.developerfusion.com/tools/convert/csharp-to-vb/

    hope it helps you,

    Kind regards<o:p></o:p>

    Thursday, January 17, 2013 4:17 AM