您的位置:首页 > 编程语言 > ASP

ASP.NET&Spring.NET&NHibernate最佳实践(二十三)——第4章权限子系统(16)

2008-05-17 21:56 483 查看
4.6. 权限子系统表示层(Web)

修改SignIn.aspx

<asp:Content ID="MiddleColumnContent" ContentPlaceHolderID="MiddleColumnZone" runat="server">

<asp:Panel ID="Panel1" runat="server" GroupingText="用户登录">

<br />

<asp:Login ID="Login1" runat="server" TitleText="">

</asp:Login>

</asp:Panel>

</asp:Content>

修改Roles.aspx

<asp:Content ID="MiddleColumnContent" ContentPlaceHolderID="MiddleColumnZone" runat="server">

<asp:Panel ID="Panel1" runat="server" GroupingText="角色列表">

<br />

<asp:BulletedList ID="lstRoles" runat="server">

</asp:BulletedList>

</asp:Panel>

<hr />

<asp:Panel ID="Panel2" runat="server" GroupingText="新增角色">

<br />

角色名称:<asp:TextBox ID="txtRoleName" runat="server"></asp:TextBox>

<asp:Button ID="btnAddRole" runat="server" Text="新增角色" OnClick="btnAddRole_Click" />

</asp:Panel>

</asp:Content>

修改Roles.aspx.cs

using System;

using System.Data;

using System.Configuration;

using System.Collections;

using System.Web;

using System.Web.Security;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Web.UI.WebControls.WebParts;

using System.Web.UI.HtmlControls;

public partial class Roles : System.Web.UI.Page
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐