Author: Sivastyle | Posted on: 8/12/2010 10:40:57 AM | Views : 286

Issue when setting Display ="Dynamic"  for Required Field Validator.

Here is my ASP.NET code. Simple. it has a A textbox associated with a required field validator and a submit button.
 
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1" Display="Dynamic" ErrorMessage="RequiredFieldValidator"></asp:RequiredFieldValidator> <asp:Button ID="Button1" runat="server" Text="Click Me" />
 
Do the following
1. Click on Button1
2. RequiredFieldValidator will be shown
3. Type some text in TextBox
4. Use your Mouse(no tab please). and click on the button , you can see that your ...

Go to the complete details ...