Aug 19, 2008, 10:06 AM
[FIXED] [V0.6] Validation broken SVN (0.6)
Hello,
Validation appears to be broken in SVN release, especially with the use of masterpages:
Login.master:
Success scenario remove master page.
I can't login to my application anymore ;)
Cheers,
Timothy
Validation appears to be broken in SVN release, especially with the use of masterpages:
Login.master:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/tr/xhtml11/dtd/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Example</title>
</head>
<body>
<form runat="server">
<asp:ScriptManager runat="server" EnablePartialRendering="True" />
<ExtJS:ScriptManager runat="server" StateProvider="PostBack" Theme="Gray" />
<asp:ContentPlaceHolder ID="Content" runat="server" />
</form>
</body>
</html>
Login.aspx:<%@ Page Language="C#" MasterPageFile="Login.master" %>
<script runat="server">
protected void btnLogin_Click(object sender, EventArgs e)
{
if (Page.IsValid)
{
}
}
</script>
<asp:Content runat="server" ContentPlaceHolderID="Content">
<ExtJS:TextField ID="txtUserName" runat="server" MaxLength="255" Width="235" />
<asp:RequiredFieldValidator runat="server" ControlToValidate="txtUserName" ValidationGroup="vsLogin" Display="Dynamic">!</asp:RequiredFieldValidator>
<ExtJS:TextField ID="txtPassword" runat="server" InputType="Password" MaxLength="255" Width="235" />
<asp:RequiredFieldValidator runat="server" ControlToValidate="txtUserName" ValidationGroup="vsLogin" Display="Dynamic">!</asp:RequiredFieldValidator>
<ExtJS:Button ID="btnLogin" runat="server" CausesValidation="True" ValidationGroup="vsLogin" onclick="btnLogin_Click" Text="Login" />
</asp:Content>
Failure scenario fill out username and password, click login and it clears the fields and validation returns empty.Success scenario remove master page.
I can't login to my application anymore ;)
Cheers,
Timothy