Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- / / login model is my model class
- [HttpPost]
- public ActionResult Login(Login model)
- {
- return View();
- }
- @using (Html.BeginForm())
- {
- <p>
- UserName: @Html.TextBoxFor(m=>m.UserName)
- </p>
- <p>
- Password: @Html.PasswordFor(m => m.Password)
- </p>
- <p>
- <input type="submit" name="login" value="Login" />
- <input type="submit" name="cancel" value="Cancel" />
- </p>}
Add Comment
Please, Sign In to add comment