Apr 25, 2013, 2:05 AM
Validation Status Error
Hi, i trying create a login form. When i add statusbar plugins, the page not showing.
I remove this part of code and then the page is showing.
Any helps?
Uncaught TypeError: Object [object Object] has no method 'getFields'
FormPanelID="StatusForm"
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LogIn.aspx.cs" Inherits="Ast.ib.LogIn" %>
<%@ Register assembly="Ext.Net" namespace="Ext.Net" tagprefix="ext" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Login</title>
</head>
<body>
<form id="Form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<ext:Viewport ID="Viewport1" runat="server">
<LayoutConfig>
<ext:VBoxLayoutConfig Align="Center" Pack="Center" />
</LayoutConfig>
<Items>
<ext:Panel ID="StatusForm" runat="server" Height="200" Title="Account Login" Width="400" BodyPadding="50" DefaultAnchor="100%">
<Items>
<ext:TextField ID="txtUser" runat="server" FieldLabel="User " SelectOnFocus="true" MsgTarget="Side" AllowBlank="false" BlankText="User tidak boleh kosong" />
<ext:TextField ID="txtPassword" runat="server" InputType="Password" SelectOnFocus="true" FieldLabel="Password " MsgTarget="Side" AllowBlank="false" BlankText="User tidak boleh kosong" />
</Items>
<BottomBar>
<ext:StatusBar ID="FormStatusBar" runat="server" DefaultText="Ready">
<Plugins>
<ext:ValidationStatus
runat="server"
FormPanelID="StatusForm"
ValidIcon="Accept"
ErrorIcon="Exclamation"
/>
</Plugins>
</ext:StatusBar>
</BottomBar>
</ext:Panel>
</Items>
</ext:Viewport>
</form>
</body>
</html>