customvalidator can't find controltovalidate

Posted by ravi on Stack Overflow See other posts from Stack Overflow or by ravi
Published on 2009-12-14T16:17:30Z Indexed on 2010/03/25 6:03 UTC
Read the original article Hit count: 491

iam having a problem finding a textbox inside createuserwizard which is inside a contentplaceholder

i have a custom validator for this textbox ..now when i put this customvalidator outside createuser wizard it says "cannot find controltovalidate control id CaptchaValue "

heres is a row inside my createuserwizard

<CreateUserWizard......>

    :
    :
    :
 <tr>

  </td>
  </tr>

    :
    :
    :

</CreateUserWizard>

and i have a customevalidator outside createuserwizard

 <asp:CustomValidator ID="CustomValidator5" runat="server" ControlToValidate="CaptchaValue"
                                                                               ErrorMessage="Image value must match" ValidationGroup="CreateUserWizard1" 
                                                                               EnableClientScript="False"></asp:CustomValidator>

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about customvalidator