<div> @using (Html.BeginForm("UserLogin", "Login", new { FeatureName = "Login" })) { @Html.AntiForgeryToken() <div class="login_box_container"> <div class="login_sections"> <div class="login_font"> @Html.LabelFor(model => model.UserName) </div> <div class="login_font"> @Html.TextBoxFor(model => model.UserName, new { @class = "login_textbox", @id = "txt_userId" }) </div> </div> <div class="login_sections"> <div class="login_font"> @Html.LabelFor(model => model.HashedPassword) </div> <div class="login_font"> @Html.PasswordFor(model => model.HashedPassword, new { @class = "login_textbox", @id = "txt_password" }) </div> </div> </div> <div class="login_button_container"> <div class="login_remenberme"> <input type="checkbox" />Remember me </div> <input type="submit" value="UserLogin" class="login_button" /> @Html.ValidationSummary() </div> } </div>
[HttpPost] public ActionResult UserLogin(LoginViewModel model, string FeatureName) { //some code here }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)