RegularExpressionValidator not Work on Smart Device RRS feed

  • Question

  • User-879814840 posted
    Hi, I have a problem with the RegularExpressionValidator. I have to create a website readable on a PDA(Smart Device) and on a PC so I use the RegularExpressionValidator like this:

    <div class="labelTextBoxSet">

    <div><asp:Label ID="L_lastName" runat="server">Last Name:</asp:Label></div>

    <asp:TextBox ID="T_lastName" runat="server"></asp:TextBox>

    <div><asp:RegularExpressionValidator ID="REV_lastName" runat="server" ControlToValidate="T_lastName"

    ErrorMessage="Not a valid input."></asp:RegularExpressionValidator></div>


    //Regular Expression is assigned at page_load.

    On a pc it works fine, but on a PDA nothing is working the ErrorMessage is never printed, not on leaving the textbox and not on clicking the submit button.

    I use .net 2.0, the Pocke PC(2003se) emulator and Visual Studio 2005

    Where is my mistake?


    Tuesday, August 22, 2006 8:45 AM

All replies

  • User2050517212 posted

    In the server side code where u are submitting the form check for - Page.IsValid and proceed if it is true

    Wednesday, August 30, 2006 9:34 AM