Jan 05, 2011, 6:32 AM
[CLOSED] Number Field
hi,
i got the coolite error, after Copy and paste some text value in NumberField, then i click the submit button.. i have set the CausesValidation="false" for that button even i got coolite error... how to fix this issue...
i got the coolite error, after Copy and paste some text value in NumberField, then i click the submit button.. i have set the CausesValidation="false" for that button even i got coolite error... how to fix this issue...
<%@ Page Language="C#" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
}
protected void climbcancelTran_Click(object sender, DirectEventArgs e)
{
X.Msg.Alert("Test", "climbcancelTran").Show();
}
</script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Ext.Net Example</title>
</head>
<body>
<form id="Form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<ext:NumberField ID="cltfRate" runat="server" AllowBlank="false" EnableKeyEvents="true"
AllowDecimals="true" DecimalSeparator="." MaxLength="8" InvalidText="Invalid data."
DecimalPrecision="5" MinValue="0.000001" BlankText="Rate is required">
</ext:NumberField>
<ext:Button ID="climbcancelTran" Icon="Cancel"
AlternateText="Cancel" CausesValidation="false" runat="server">
<DirectEvents>
<Click OnEvent="climbcancelTran_Click" />
</DirectEvents>
</ext:Button>
</form>
</body>
</html>
Last edited by Daniil; Jan 09, 2011 at 12:10 PM.
Reason: [CLOSED]