Reputation: 271
I am desperately trying to create a responsiv mobile part of my site, with so far positive result. But when trying to create a login, I fall short.
Upon clicking the Log in button simply nothing happends...
View:
@model HiltiHaninge.Models.LoginModel
@{
ViewBag.Title = "Logga in";
}
@section Header{
@Html.ActionLink("Avbryt", "IndexMobile", "Home", null, new { data_icon = "arrow-l", data_rel = "back" })
<h1>@ViewBag.Title</h1>
}
<section id="loginForm">
@using (Html.BeginForm(new { data_ajax = "false", ReturnUrl = ViewBag.ReturnUrl }))
{
@Html.AntiForgeryToken()
@Html.ValidationSummary(true)
<ul data-role="listview" data-inset="true">
<li data-role="list-divider">Detaljer</li>
<li data-role="fieldcontain">
@Html.LabelFor(m => m.UserName)
@Html.TextBoxFor(m => m.UserName)
@Html.ValidationMessageFor(m => m.UserName)
</li>
<li data-role="fieldcontain">
@Html.LabelFor(m => m.Password)
@Html.PasswordFor(m => m.Password)
@Html.ValidationMessageFor(m => m.Password)
</li>
<li data-role="fieldcontain">
@Html.LabelFor(m => m.RememberMe, new { @class = "checkbox" })
@Html.CheckBoxFor(m => m.RememberMe)
</li>
<li data-role="fieldcontain">
<input type="submit" value="Logga in" />
</li>
</ul>
}
</section>
@section Scripts {
@Scripts.Render("~/bundles/jqueryval")
}
So I can't figure out what the error is.
Upvotes: 0
Views: 38