<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<MVCBlogo.NET.BO.Author>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderPage" runat="server">

    <h3>修改用户</h3>
<%=Html.ValidationSummary("修改用户信息失败，请修改错误后再提交") %>
<%
    using (Html.BeginForm("AdminAuthorEdit"))
    {
 %>
     <div>
        <fieldset>
           <%=Html.Hidden("id",Model.id.ToString()) %> <!--隐藏域，存储的是用户的ID号-->
           <p>
             <label for="username">用户名：</label>
             <%=Html.TextBox("username", null, new { size = 33 })%>
             <%=Html.ValidationMessage("username")%>
           </p>
            <p>
             <label for="password">密码：</label>
             <%=Html.Password("password")%>
             <%=Html.ValidationMessage("password")%>
           </p>
           <p>
             <input type="submit" value="修改" class="button" />
           </p>
        </fieldset>
     </div>
 <%
    } %>

</asp:Content>
