日期:2014-05-17 浏览次数:20474 次
@using (Html.BeginForm()) { <div style="width: 380px; margin: 0px auto"> <fieldset> <legend>帐号信息</legend> <p> <label for="username"> 帐号:</label> @Html.TextBox("username") @Html.ValidationMessage("username") </p> <p> <label for="password"> 密码:</label> @Html.Password("password") @Html.ValidationMessage("password") </p> <p> @Html.CheckBox("rememberMe") <label class="inline" for="rememberMe"> 下次自动登录(公共电脑上谨慎使用)</label> </p> <div class="center"> <input type="submit" value="登录(L)" accesskey="L" /> </div> <p>@Html.ActionLink("还没有账号?立即注册", "Register")</p> </fieldset> </div> }