Nov 04, 2008, 9:48 AM
[CLOSED] Validation Broken
Hello,
As of revision 702 the validation is now broken:
Example.aspx:
1. Load page, type "Test" into txtTest
2. Click submit, nothing
Also, notice I set the Text="Word" on the textfield, does not load on first view.
Cheers,
Timothy
As of revision 702 the validation is now broken:
Example.aspx:
<%@ Page Language="C#" %>
<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
<script runat="server">
protected void btnTest_Click(object sender, EventArgs e)
{
if (Page.IsValid)
{
lblTest.Text = txtTest.Text;
}
}
</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>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="True" />
<ext:ScriptManager ID="ScriptManager2" runat="server" StateProvider="PostBack" />
<ext:TextField ID="txtTest" runat="server" MaxLength="255" Text="Word" />
<asp:RequiredFieldValidator ID="rfvTest" runat="server" ControlToValidate="txtTest" ErrorMessage="Text is required" Display="Dynamic">!</asp:RequiredFieldValidator>
<ext:Button ID="btnTest" runat="server" AutoPostBack="True" CausesValidation="True" onclick="btnTest_Click" Text="Submit" />
<ext:Label ID="lblTest" runat="server" Text="Waiting ..." />
</form>
</body>
</html>
Replication steps:1. Load page, type "Test" into txtTest
2. Click submit, nothing
Also, notice I set the Text="Word" on the textfield, does not load on first view.
Cheers,
Timothy