📄 edit_users.ascx
字号:
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="edit_users.ascx.cs" Inherits="qruan.edit_users" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<style type="text/css">
.STYLE1 { FONT-SIZE: 12px }
</style>
<table width="564" height="200" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="30"><table width="560" height="30" border="0" cellpadding="0" cellspacing="0">
<tr bgcolor="#afe195">
<td width="33%" height="30" align="right" bgcolor="#f7dc1d"><span class="STYLE1">订餐者名称:</span></td>
<td width="27%" bgcolor="#f7dc1d"><span class="STYLE1">
<asp:TextBox id="TextBox1" runat="server" Width="120px" Height="18px"></asp:TextBox>
</span>
</td>
<td width="40%" bgcolor="#f7dc1d"><span class="STYLE1">
<asp:Button id="Button1" runat="server" Text="添 加"></asp:Button>
</span>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="200" valign="top">
<asp:DataGrid id="DataGrid1" runat="server" Width="560px" PageSize="15" AllowPaging="True" AutoGenerateColumns="False"
BorderColor="#D7AC1D" BorderWidth="1px" DataKeyField="id">
<AlternatingItemStyle HorizontalAlign="Center" BackColor="#F7FCED"></AlternatingItemStyle>
<ItemStyle Font-Size="Smaller" HorizontalAlign="Center" BackColor="#F7FCAD"></ItemStyle>
<HeaderStyle Font-Size="Smaller" Font-Bold="True" HorizontalAlign="Center" BackColor="#F7DC1D"></HeaderStyle>
<FooterStyle HorizontalAlign="Right" BackColor="#91DE85"></FooterStyle>
<Columns>
<asp:BoundColumn DataField="id" ReadOnly="True" HeaderText="编号">
<HeaderStyle Width="110px"></HeaderStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="user_name" HeaderText="订餐者名">
<HeaderStyle Width="220px"></HeaderStyle>
</asp:BoundColumn>
<asp:EditCommandColumn ButtonType="LinkButton" UpdateText="更新" HeaderText="编辑" CancelText="取消" EditText="编辑"></asp:EditCommandColumn>
<asp:ButtonColumn Text="删除" HeaderText="删除" CommandName="Delete"></asp:ButtonColumn>
</Columns>
<PagerStyle HorizontalAlign="Right" BackColor="#F7DC1D" Mode="NumericPages"></PagerStyle>
</asp:DataGrid></td>
</tr>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -