PageRenderTime 49ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/Source/Samples/Blog/Bifrost.Samples.Blog.Mvc/Features/Users/LogOn.cshtml

#
Razor | 31 lines | 26 code | 5 blank | 0 comment | 0 complexity | 6f9aa0a4673cd6ef36c2dff2ce193dbe MD5 | raw file
Possible License(s): CC-BY-SA-3.0
  1. @{
  2. ViewBag.Title = "Login";
  3. }
  4. @using( Html.BeginForm("Login","Users", null, FormMethod.Post) )
  5. {
  6. @Html.Hidden("redirectUrl",ViewContext.RequestContext.HttpContext.Request["ReturnUrl"])
  7. <table>
  8. <tr>
  9. <td>
  10. Username
  11. </td>
  12. <td>
  13. @Html.TextBox("userName", null, null)
  14. </td>
  15. </tr>
  16. <tr>
  17. <td>
  18. Password
  19. </td>
  20. <td>
  21. @Html.TextBox("password", null, null)
  22. </td>
  23. </tr>
  24. </table>
  25. <input type="submit" value="Login" />
  26. }