📄 roleform.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Roleform.aspx.cs" Inherits="role_Roleform" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<table style="width: 100%">
<tr>
<td>
用户角色管理</td>
</tr>
<tr>
<td>
用户角色表:</td>
</tr>
<tr>
<td>
<asp:Button ID="Btn_Addrole" runat="server" Text="新增角色" OnClick="Btn_Addrole_Click" /></td>
</tr>
</table>
</div>
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="False" DataKeyNames="roleid" DataSourceID="SqlDataSource1">
<Columns>
<asp:BoundField DataField="name" HeaderText="name" SortExpression="name" />
<asp:BoundField DataField="roleid" HeaderText="roleid" ReadOnly="True" SortExpression="roleid" />
<asp:BoundField DataField="describtion" HeaderText="describtion" SortExpression="describtion" />
<asp:TemplateField>
<ItemTemplate>
<a href="RoleEdit.aspx?rid=<%#Eval("roleid") %>&edit=1" class=link style=" font-size:12px">编辑</a>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:LinkButton ID="LinkButton2" runat="server" Font-Size=12px CausesValidation="False" CommandName="Select"
OnClientClick='return confirm("这项操作将删除用户,是否继续?");' Text="删除"></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:sjglxt %>"
SelectCommand="SELECT name, roleid, describtion, authorize FROM role"></asp:SqlDataSource>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -