Mar 11, 2012, 11:31 PM
Razor FormPanel "FormID" missing
FormPanel is not rendering an html <form>. The property "FormID" seems to be missing.
Html.X().FormPanel()
.ID("FormPanel")
.Url(Html.AttributeEncode(Url.Action("LogOn")))
.Items(itemsFormPanel => {
itemsFormPanel.Add(Html.X().TextField().ID("UserName").FieldLabel("Username").AllowBlank(false).BlankText("Username is required.").Text("").AnchorHorizontal("100%"));
itemsFormPanel.Add(Html.X().TextField().ID("Password").FieldLabel("Password").AllowBlank(false).BlankText("Password is required.").Text("").AnchorHorizontal("100%").InputType(Ext.Net.InputType.Password));
})
Ext1.3:<ext:FormPanel ID="FormPanel1"
runat="server"
FormID="form1"
Layout="form"
Url='<%# Html.AttributeEncode(Url.Action("LogOn")) %>'>
<Items>
<ext:TextField ID="Username" runat="server" FieldLabel="Username" AllowBlank="false"BlankText="Username is required." Text="" AnchorHorizontal="100%" />
<ext:TextField ID="Password" runat="server" InputType="Password" FieldLabel="Password" AllowBlank="false" BlankText="Password is required." Text="" AnchorHorizontal="100%" />
</Items>
</ext:FormPanel>