📄 editusers.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="EditUsers.aspx.cs" Inherits="_Default" %>
<!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>
<link href="StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body background="Img/bg.gif">
<form id="form1" runat="server">
<div align="center">
<table border="0" style="width: 376px; height: 225px" cellpadding="0" cellspacing="0">
<tr>
<td align="center" bgcolor="#ccffff" colspan="4" style="font-weight: bold; font-size: 25px;
color: #ffffff; height: 47px" background="BG/007.jpg">
用户管理</td>
</tr>
<tr>
<td style="width: 774px; height: 20px; background-color: #ffffff;" align="right" valign="middle">
具体查询:
<asp:ImageButton ID="ImageButton5" runat="server" ImageUrl="~/Img/newtopic.gif" OnClick="ImageButton5_Click" /></td>
<td style="width: 100px; height: 20px; background-color: #ffffff;">
<asp:DropDownList ID="DropDownList1" runat="server">
<asp:ListItem Value="UserName">姓名</asp:ListItem>
<asp:ListItem Value="Power">权限</asp:ListItem>
</asp:DropDownList></td>
<td style="width: 100px; height: 20px; background-color: #ffffff;">
<asp:TextBox ID="TextBox_Infor" runat="server"></asp:TextBox></td>
<td style="width: 100px; height: 20px; background-color: #ffffff;">
<asp:Button ID="Button1" runat="server" Text="查询" OnClick="Button1_Click" /></td>
</tr>
<tr>
<td colspan="4" style="height: 133px" valign="top">
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
BackColor="MenuBar" BorderColor="White" BorderStyle="None" BorderWidth="1px"
CellPadding="2" CellSpacing="-1" ForeColor="Black" GridLines="None" Height="20px"
HorizontalAlign="Center" OnPageIndexChanging="GridView1_PageIndexChanging" OnRowCancelingEdit="GridView1_RowCancelingEdit"
OnRowDataBound="GridView1_RowDataBound" OnRowDeleting="GridView1_RowDeleting"
OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating" PageSize="8"
Width="850px">
<Columns>
<asp:BoundField DataField="UserName" HeaderText="姓名">
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
</asp:BoundField>
<asp:BoundField DataField="Sex" HeaderText="性别" />
<asp:BoundField DataField="Password" HeaderText="密码">
<ItemStyle HorizontalAlign="Center" Wrap="False" />
</asp:BoundField>
<asp:BoundField DataField="Power" HeaderText="权限">
<ItemStyle HorizontalAlign="Center" Wrap="False" />
</asp:BoundField>
<asp:CommandField ButtonType="Image" CancelImageUrl="~/Img/delete.gif" CancelText="取 消"
EditImageUrl="~/Img_Button/post_button_edit.gif" EditText="编 辑" HeaderText="编辑"
ShowEditButton="True" UpdateImageUrl="~/Img/edit.gif">
<ItemStyle HorizontalAlign="Center" />
</asp:CommandField>
<asp:CommandField ButtonType="Image" DeleteImageUrl="~/Img_Button/post_button_delete.gif"
HeaderText="删除" ShowDeleteButton="True">
<ItemStyle HorizontalAlign="Center" />
</asp:CommandField>
</Columns>
<PagerTemplate>
<table style="width: 535px; height: 24px">
<tr>
</tr>
</table>
<table align="right">
<tbody>
<tr>
<td>
<asp:Label ID="LabelCurrentPage" runat="server" Font-Size="Small">当前页:<%# ((GridView)Container.NamingContainer).PageIndex + 1 %></asp:Label></td>
<td>
<asp:Label ID="LabelPageCount" runat="server" Font-Size="Small">总页数:<%# ((GridView)Container.NamingContainer).PageCount %></asp:Label></td>
<td style="width: 29px">
<asp:ImageButton ID="ImageButton1" runat="server" CommandArgument="First" CommandName="page"
ImageUrl="~/Img/bfirst.gif" /></td>
<td>
<asp:ImageButton ID="ImageButton2" runat="server" CommandArgument="prev" CommandName="page"
ImageUrl="~/Img/bprev.gif" /></td>
<td>
<asp:ImageButton ID="ImageButton3" runat="server" CommandArgument="next" CommandName="page"
ImageUrl="~/Img/bnext.gif" /></td>
<td>
<asp:ImageButton ID="ImageButton4" runat="server" CommandArgument="last" CommandName="page"
ImageUrl="~/Img/btail.gif" /></td>
</tr>
</tbody>
</table>
</PagerTemplate>
<SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
<HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" HorizontalAlign="Center"
Wrap="True" />
<EditRowStyle BorderStyle="None" BorderWidth="0px" Height="18px" HorizontalAlign="Center" />
<FooterStyle BackColor="#CCCC99" ForeColor="Black" Height="20px" />
</asp:GridView>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -