Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

What's wrong with my validators? They used to work, and I certainly don't remember changing anything. Am I using an outdated design?

<table><tbody>
 <tr>
   <td>Name:</td>
   <td>
     <asp:TextBox ID="txtFirst" runat="Server" />
     <asp:RequiredFieldValidator ID="validFirst" runat="server"
            ErrorMessage="Required" ControlToValidate="txtFirst">
            Required</asp:RequiredFieldValidator>
   </td>
 </tr>
 <tr>
   <td>E-Mail:</td>
   <td>
     <asp:TextBox ID="txtEmail" runat="server" />
     <asp:RegularExpressionValidator ID="vaildEmail" runat="server"
            ErrorMessage="Invalid" ControlToValidate="txtEmail"
 ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">
            Required</asp:RegularExpressionValidator>
   </td>
 </tr>
 <tr>
   <td colspan="2" align="center">Message:<br />
   <asp:TextBox ID="txtMessage" Columns="40" Rows="10" runat=server
           Text="Write your message here." TextMode="MultiLine" />
     <br />
   <asp:RequiredFieldValidator ID="validMessage" runat="server"
           ErrorMessage="Required" ControlToValidate="txtMessage">
           Required</asp:RequiredFieldValidator>
 </td>
 </tr>
 <tr>
   <td colspan="2" align="center">
     <asp:Button ID="btnSubmit" runat="Server" Text="Send" OnClick="btnSubmit_Click" />
   <br />
 </tr>
</tbody></table>

  • Administrators
Posted

What version of .Net are you using? IIRC the 1 / 1.1 versions pretty much only supported IE client side - the 2 and later versions though have much better browser support.

 

Did you try copying the aspnet_client/system_web folder like the links suggested?

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...