PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms 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
 1@{
 2    ViewBag.Title = "Login";
 3}
 4
 5@using( Html.BeginForm("Login","Users", null, FormMethod.Post) )
 6{
 7    @Html.Hidden("redirectUrl",ViewContext.RequestContext.HttpContext.Request["ReturnUrl"])
 8    
 9    <table>
10        <tr>
11            <td>
12                Username
13            </td>
14            <td>
15                
16                @Html.TextBox("userName", null, null)
17            </td>
18        </tr>
19        <tr>
20            <td>
21                Password
22            </td>
23            <td>
24                @Html.TextBox("password", null, null)
25            </td>
26
27        </tr>
28    </table>
29
30    <input type="submit" value="Login" />
31}