Sep 17, 2013, 3:13 PM
[CLOSED] MVC - Layout
Hi,
With code below
Can you tell me how to fix it?
Thanks,
With code below
<body> @(x.ResourceManager())
@using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl }))
{
@(x.Viewport()
.Layout(LayoutType.Center)
.Items(x.Panel()
.Layout(LayoutType.Center)
.CustomConfig(collection => collection.Add(new ConfigItem { Name = "width", Value = "75%", Mode = ParameterMode.Value })))
.Items(x.FormPanel()
.ButtonAlign(Alignment.Center)
.Frame(true)
.Items(Html.X().TextField()
.FieldLabel("Username")
, Html.X().TextField().FieldLabel("Password"))
.Buttons(Html.X().Button().ID("login").Text("Login").Icon(Icon.Accept))))
}
</body>
I got a JavaScript error Uncaught TypeError: Cannot call method 'substring' of undefined
Can you tell me how to fix it?
Thanks,
Last edited by Daniil; Sep 18, 2013 at 6:22 AM.
Reason: [CLOSED]