Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
155
Validation
posted

Is is possible to use ASP.NET validation controls in a WebDialogWindow?


If yes, does anyone have some example code?

Thanks,
Jeff

  • 24497
    Verified Answer
    posted

    Hi Jeff,

    Validators in dialog should work same way as in any other template/container. I tested following and it worked as expected.

    <ig:WebDialogWindow runat="server" ID="WebDialogWindow1" Height="400px" Width="470px">
    <ContentPane>
     <Template>
      <asp:Button ID="Button1" runat="server" Text="Submit" Width="189px" />
      <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
      <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
       ErrorMessage="RequiredFieldValidator" ControlToValidate="TextBox1"></asp:RequiredFieldValidator>
     </Template>
    </ContentPane>
    </ig:WebDialogWindow>