Jun 19, 2008, 9:12 AM
[FIXED] [V0.5] Button Click
When you add a button to a form which causes validation, the validation is not evaluated on the client side, just the server.
Cheers,
Timothy
<ExtJS:ScriptManager runat="server" StateProvider="PostBack" Theme="Gray" />
<form runat="server">
<asp:ValidationSummary ID="vsSummary" runat="server" HeaderText="The following requires your attention:" ShowMessageBox="True" ShowSummary="False" />
Name:&nbsp;<asp:TextBox ID="txtName" runat="server" Width="255" />
<asp:RequiredFieldValidator ID="rfvName" runat="server" ControlToValidate="txtName" ErrorMessage="Name is a required field!" Display="Dynamic">!</asp:RequiredFieldValidator>
<ExtJS:Button ID="btnSubmit" runat="server" CausesValidation="True" Text="Submit" />
<asp:Button ID="btnSubmit2" runat="server" CausesValidation="True" Text="Submit 2" />
</form>
The above demonstrates that the ExtJS button does not issue the validation on client side, only on server side :)Cheers,
Timothy