Tag Archives: CreateUserWizard

[RESOLVED]CreateUserWizard within a jQuery dialog


I place a createUserWizard insode a jQuery dialog, 

When clicking the "Create User" nothing happens….

Any idea why id does not work from withinh a dialog ?

Hi shtrudel,

For your issue ,I think the problem is that you didn’t append your dialog to your form,please try the code below:

 $(function () {
                autoOpen: true

Best Regards,

Kevin Shen.

You can actually use the
appendTo option

$(function () {
         autoOpen: true,
         appendTo: "form:first"

[RESOLVED]Register users based on e-mail list

Hi all,

I am using CreateUserWizard to let users register on my web application. My requirement is to only let users register if the email they enter while registering exists in my database(i have a table with all the valid emails). I did a lot of research and came
across this similar requirment here http://stackoverflow.com/questions/9476820/asp-net-register-users-based-on-e-mail-whitelist. but how can I stop the
registration if the email doesn’t exist in my database?Since am using the CreateUserWizard , do I have control over stopping the registration?

Please advise and thanks for the help.

can not create user in the Administration tool, but can use CreateUserWizard to create user inthe porgram


I have a issue about ASP.NET Administration tool.

I can not use that tool to create new user . I have test provider , all are OK. I can delete user, add ,delete role ,in the tool ,but just could not create new user.

 and I have put a CreatUserwizard in the program. after I run the program I can use this createUserwizard to create new user. and in the Administration tool, can show this user.

So does anyone know what the problem it is ? if it is just config problem, Why in the program can create new user ,but in the Administraion tool can not?



did you define a configuration for membership provider in ur web.config?





yes.  I am wondering you see in the program ,it can add the user from CreateUser Wizard that means my Membership provider should be no problem, why in the Administration tool could not create user?  do not understand


Administration tool could not create user


what do you mean? do you received an error message? or maybe its pointed to another database.

[RESOLVED]Bind Country/State DDL

I have two Dropdownlists within a CreateuserWizard. One for Country and the other for State. I also have two sqldatasources. I am trying to load the state dropdownlist based on the selection of the the country dropdownlist. The state dropdownlist is not




<asp:CreateUserWizard ID="RegisterUser" runat="server" EnableViewState="True"
                    OnCreatedUser="RegisterUser_CreatedUser" BackColor="#F7F6F3"
                    BorderColor="#E6E2D8" BorderStyle="Solid" BorderWidth="1px"
                    Font-Names="Verdana" Font-Size="0.8em">

                                <asp:Label ID="CountryLabel" runat="server" AssociatedControlID="ddlCountry">Country:</asp:Label>
                                <asp:DropDownList ID="ddlCountry" runat="server" BackColor="White"  EnableViewState="true"
                                    ForeColor="Black" AutoPostBack="True" DataSourceID="SqlDataSource1"
                                    DataTextField="CountryName" DataValueField="Country#"
                                <asp:RequiredFieldValidator ID="CountryRequired" runat="server" ControlToValidate="ddlCountry"
                                     CssClass="failureNotification" ErrorMessage="Country is required." ToolTip="Country is required."

                                <asp:Label ID="StateLabel" runat="server" AssociatedControlID="ddlState">State:</asp:Label>
                                <asp:DropDownList ID="ddlState" runat="server" BackColor="White" EnableViewState="true"
                                     ForeColor="Black" DataSourceID="SqlDataSource2"
                                     DataTextField="StateName" DataValueField="State#" AutoPostBack="True"></asp:DropDownList>
                                <asp:RequiredFieldValidator ID="StateRequired" runat="server" ControlToValidate="ddlState"
                                     CssClass="failureNotification" ErrorMessage="State is required." ToolTip="State is required."

</asp:CreateUserWizard >

<asp:SqlDataSource ID="SqlDataSource1" runat="server"
                    ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                    SelectCommand="SELECT * FROM [Country]"></asp:SqlDataSource>
                <br />
                <asp:SqlDataSource ID="SqlDataSource2" runat="server"
                    ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                    SelectCommand="SELECT State.State#, State.StateName FROM State INNER JOIN StateCountry ON State.State# = StateCountry.State# WHERE (StateCountry.Country# = @column1)">
                        <asp:SessionParameter Name="column1" SessionField="countryID" />



protected void Page_Load(object sender, EventArgs e)
        RegisterUser.ContinueDestinationPageUrl = Request.QueryString["ReturnUrl"];

        if (!Page.IsPostBack)
            DropDownList stateList = (DropDownList)RegisterUserWizardStep.ContentTemplateContainer.FindControl("ddlState");
            DropDownList countryList = (DropDownList)RegisterUserWizardStep.ContentTemplateContainer.FindControl("ddlCountry");
            Session["countryID"] = countryList.SelectedValue.ToString();





Use control parameter instead. <asp:controlparameter name= "column1" controlid= "ddlCountry" propertyname= "SelectedValue" /> You don’t need to write some code behind to populate ddlState items. Don’t join the table, simply set criteria.

Error :

Could not find control ‘ddlCountry’ in ControlParameter ‘column1′.

I also tried countryList.

Maybe you can place Country/State DDL, SqlDataSource in same template


try somthing like this

Session["countryID"] = countryList.SelectedValue.ToString();
// first clear statelist then assign value

hope this works for you 



try the following code ,

<asp:controlparameter name= "column1" controlid= "RegisterUser$ddlCountry" propertyname= "SelectedValue" />

hopfully it will help.

Hi Code_warrior…,

As oned_gk suggested, using ControlParameter would be better here. Also, for the following error you encountered:

"Could not find control ‘ddlCountry’ in ControlParameter ‘column1′."

it is due to the SqlDataSource control cannot locate the dropdownlist control (ddlCountry) inside the CreateUserWizard control (they are not in the same container). As oned_gk suggested, you can try putting the SqlDataSource control into the CreateUserWizard
(make them in the same container) to see if it works.

[RESOLVED]Customize createUserWizard control

Hi at all, I have problem to customize createUserWizard control.

I want to put the captcha control with the other control like password or username.

I’ve already read the msdn library but no one explain how to use control without createUserWizardStep.

Probably is a problem with logic but is 2 day I’ve trying.

Thank you for all help you can give and I hope my english isn’t too bad.

WAP and ASPWebProfileGenerator

I have an exception when I use this code

private WebProfile Profile


get { return
new WebProfile(Context.Profile); }


protected void CreateUserWizard1_CreatedUser(object sender,
EventArgs e)


Profile.Entreprise = ((TextBox)CreateUserWizard1.CreateUserStep.ContentTemplateContainer.FindControl("tbx_Entreprise")).Text;


The Context.Profile.IsAnonymous property is true and I have an System.Configuration.Provider.ProviderException


public virtual void SetPropertyValue(string propertyName, object propertyValue) {
this._profileBase.SetPropertyValue(propertyName, propertyValue);

How to create an empty profile for tne newly created user?









Does the following work?

<div dir=ltr align=left>

WebProfile p = new
WebProfile(WebProfile.Create(userName, true));
p.SomeProperty = someValue;


I just have faced the same problem and use your code

WebProfile p = new WebProfile(WebProfile.Create(userName, true));
p.SomeProperty = someValue;

it just works fine.

thanks a lot.

[RESOLVED]JQuery iterate checkboxlist


I have a checkboxlist in a createuserwizard. I am trying to create a custom validator for it. But for some reason I am getting an error in my javascript. It gets the element but when I try to get all the inputs of the checkboxlist it gives an error.

Any help would be really appreciated.

function ValidateServiceCheckboxlist(source, args) {

            var chklist = '<%= CreateUserWizard1.CreateUserStep.ContentTemplateContainer.FindControl("chkCompanyService").ClientID %>';
            var chklist23 = document.getElementById('<%= "CreateUserWizardStep1.ContentTemplate.chkCompanyService.ClientID"  %>');
            var chkListInputs = chklist.getElementsByTagName("input");

            for (var i = 0; i < chkListInputs.length; i++) {
                if (chkListInputs[i].checked) {
                    args.IsValid = true;
            args.IsValid = true;

This gives the error Error: Unable to get value of the property ‘getElementsByTagName’: object is null or undefined

"chkList" is a string, it doesn’t have a getElementsByTagName method.  Did you mean to use chkList23 instead?

var chkListInputs = chklist23.getElementsByTagName("input");