customValidator not triggered, help

Discussion in 'ASP .Net' started by Jeff, Jan 30, 2009.

  1. Jeff

    Jeff Guest

    hi

    asp.net 3.5

    Here is a part of the markup for my webpage. The customValidator isn't
    triggered. what am I doing wrong here?

    <asp:CreateUserWizard ID="cuwNewUser"
    runat="server" AutoGeneratePassword="false"
    OnCreatedUser="CreatedUser" DisableCreatedUser="true"
    LoginCreatedUser="false" CreateUserButtonType="Image"
    FinishCompleteButtonType="Image"
    FinishCompleteButtonImageUrl="~/Images/Go.gif"
    CreateUserButtonImageUrl="~/Images/Go.gif" >
    <WizardSteps>
    <asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server"
    Title="Initial step">
    <ContentTemplate>

    <div style="margin-left:auto; margin-right:auto; width:400px;
    margin-top:50px; background-color:Olive;">
    <div class="sectiontitle"
    style="text-align:center;">Registration</div>
    <table>
    <tr>
    <td style="text-align:right">User Name:</td>
    <td style="width:160px;">
    <asp:TextBox ID="UserName" CssClass="textbox"
    runat="server" Width="100%"></asp:TextBox>

    </td>
    <td style="width:10px;">

    <asp:CustomValidator ID="valProfileExists"
    runat="server"
    ErrorMessage="Username already registered"
    EnableClientScript="false"
    ControlToValidate="UserName"
    SetFocusOnError="false" Display="Dynamic"
    ValidationGroup="cuwNewUser"
    OnServerValidate="ProfileExists">*</asp:CustomValidator>

    <asp:RequiredFieldValidator
    ID="valRequireUserName" runat="server"
    ErrorMessage="Username is required"
    ControlToValidate="UserName"
    SetFocusOnError="false" Display="Dynamic"
    ValidationGroup="cuwNewUser">*
    </asp:RequiredFieldValidator>



    </td>
     
    Jeff, Jan 30, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Steve Pan
    Replies:
    1
    Views:
    414
    Fred W
    Nov 6, 2003
  2. John Sturgeon

    DataGrid SortCommand event not triggered

    John Sturgeon, Nov 26, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    586
    John Sturgeon
    Dec 2, 2003
  3. Replies:
    1
    Views:
    387
    Joerg Jooss
    Feb 9, 2006
  4. click event not triggered

    , Feb 28, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    338
  5. Jeff

    Help, event not triggered

    Jeff, Jul 18, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    1,356
Loading...

Share This Page