Dec 14, 2010, 5:08 AM
how to avoid the page going to server side when textbox with attribut AllowBlank="false" is empty
Hello,
I have one textbox with attribute AllowBlank="false". if i dont put any value in that textbox and click on the add button it is going sever.
how to avoid that id it should not go to server since it does not contain value. Same thing for MinLength="5".
code is as follows...
Harshad Jadhav
I have one textbox with attribute AllowBlank="false". if i dont put any value in that textbox and click on the add button it is going sever.
how to avoid that id it should not go to server since it does not contain value. Same thing for MinLength="5".
code is as follows...
<ext:Panel ID="PanelColumnDetails" runat="server" Frame="true" Title="Column Details"
AutoWidth="true" AutoScroll="true" Header="true" Border="false" Width="600" Height="1001">
<Content>
<table border="1" cellpadding="1" cellspacing="1">
<tr>
<td>
<ext:TextField ID="txtFirst" AllowBlank="false" MinLength="5" MaxLength="5" runat="server">
</ext:TextField>
</td>
</tr>
<tr>
<td>
<ext:Button ID="btnAdd" runat="server" Text="Add">
<DirectEvents>
<Click OnEvent="btnAdd_Click" ViewStateMode="Enabled">
</Click>
</DirectEvents>
</ext:Button>
</td>
</tr>
</table>
</Content>
</ext:Panel>
Thanks and RegardsHarshad Jadhav