日期:2014-05-18 浏览次数:20480 次
<%@ Page Language="C#" MasterPageFile="MasterPage.master" AutoEventWireup="true" CodeFile="RoleInfo.aspx.cs" Inherits="Admin_RoleInsert" Title="设备管理后台系统" %> <%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server"> <link rel="Stylesheet" type="text/css" href="../Admin/css/Modular.css" /> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server"> <div class="webmap"> </div> <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server"> </asp:ScriptManagerProxy> <div id="ModularName"> 用户角色管理模块</div> <hr class="hr2" /> <div id="ModularContent"> <div class="title"> <h1> 增加用户角色</h1> <table> <tr> <td> <asp:Label ID="labName" runat="server" Text="新角色名称:"></asp:Label> </td> <td> <asp:TextBox ID="tbxrolename" runat="server" ValidationGroup="addRo"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ValidationGroup="addRo" ControlToValidate="tbxrolename" runat="server" ErrorMessage="请输入类别名字!" Text="*"></asp:RequiredFieldValidator> </td> <td> <asp:Button ID="addbtn" runat="server" Text="增加角色" ValidationGroup="addRo" OnClick="addbtn_Click" /> <asp:ValidationSummary ID="ValidationSummary1" ValidationGroup="addRo" ShowMessageBox="true" ShowSummary="false" runat="server" /> </td> </tr> </table> </div> <hr class="hr2" /> [color=#FF0000] <asp:UpdatePanel ID="MyUpdatePanel" runat="server" ChildrenAsTriggers="true" UpdateMode="Conditional"[/color]> <ContentTemplate> <div class="list"> <asp:GridView ID="gvRoleInfo" runat="server" AutoGenerateColumns="False" AllowPaging="True" GridLines="Horizontal" BorderColor="#CAD9EA" BorderStyle="Solid" BorderWidth="1px" CellPadding="4" OnPageIndexChanging="gvRoleInfo_PageIndexChanging" OnRowUpdating="gvRoleInfo_RowUpdating" OnRowEditing="gvRoleInfo_RowEditing" OnRowCancelingEdit="gvRoleInfo_RowCancelingEdit" OnRowDeleting="gvRoleInfo_RowDeleting"> <RowStyle CssC