📄 classmanager.aspx
字号:
<%@ page language="C#" autoeventwireup="true" inherits="classmanager, App_Web_xtvwqxfv" %>
<!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>
</div>
<div style="z-index: 102; left: 226px; width: 509px; position: absolute; top: 85px;
height: 278px">
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="False" BackColor="White" BorderColor="#999999" BorderStyle="Solid"
BorderWidth="1px" CellPadding="3" DataKeyNames="类名" DataSourceID="SqlDataSource1"
ForeColor="Black" GridLines="Vertical" Height="237px" PageSize="5" Style="position: absolute; left: 3px; top: 14px; border-collapse: separate;"
Width="504px">
<FooterStyle BackColor="#CCCCCC" />
<Columns>
<asp:CommandField ButtonType="Button" ShowDeleteButton="True" ShowEditButton="True">
<ControlStyle Width="45px" />
<ItemStyle Width="100px" />
</asp:CommandField>
<asp:BoundField DataField="类名" HeaderText="类名" ReadOnly="True" SortExpression="类名">
<ControlStyle Width="60px" />
<ItemStyle Width="60px" />
</asp:BoundField>
<asp:BoundField DataField="序号" HeaderText="序号" SortExpression="序号">
<ControlStyle Width="40px" />
<ItemStyle Width="40px" />
</asp:BoundField>
<asp:BoundField DataField="信息" HeaderText="信息" SortExpression="信息" />
</Columns>
<PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="#CCCCCC" />
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConflictDetection="CompareAllValues"
ConnectionString="<%$ ConnectionStrings:mmConnectionString %>" DeleteCommand="DELETE FROM [类别] WHERE [类名] = @original_类名 AND [序号] = @original_序号 AND [信息] = @original_信息"
InsertCommand="INSERT INTO [类别] ([类名], [序号], [信息]) VALUES (@类名, @序号, @信息)" OldValuesParameterFormatString="original_{0}"
SelectCommand="SELECT [类名], [序号], [信息] FROM [类别]" UpdateCommand="UPDATE [类别] SET [序号] = @序号, [信息] = @信息 WHERE [类名] = @original_类名 AND [序号] = @original_序号 AND [信息] = @original_信息">
<DeleteParameters>
<asp:Parameter Name="original_类名" Type="String" />
<asp:Parameter Name="original_序号" Type="Int32" />
<asp:Parameter Name="original_信息" Type="String" />
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="序号" Type="Int32" />
<asp:Parameter Name="信息" Type="String" />
<asp:Parameter Name="original_类名" Type="String" />
<asp:Parameter Name="original_序号" Type="Int32" />
<asp:Parameter Name="original_信息" Type="String" />
</UpdateParameters>
<InsertParameters>
<asp:Parameter Name="类名" Type="String" />
<asp:Parameter Name="序号" Type="Int32" />
<asp:Parameter Name="信息" Type="String" />
</InsertParameters>
</asp:SqlDataSource>
</div>
<asp:Label ID="Label1" runat="server" Font-Names="方正行楷简体" Font-Size="Large" Style="z-index: 100;
left: 384px; position: absolute; top: 40px" Text="【办公用品类别管理】"></asp:Label>
<div style="z-index: 103; left: 232px; width: 497px; position: absolute; top: 373px;
height: 197px; border-bottom: black thin solid; border-top: black thin solid;">
<asp:Label ID="Label2" runat="server" Font-Names="方正行楷简体" Style="left: 25px; position: absolute;
top: 10px" Text="类名:"></asp:Label>
<asp:TextBox ID="TextBox1" runat="server" Style="left: 71px; position: absolute;
top: 11px" Width="91px"></asp:TextBox>
<asp:Label ID="Label3" runat="server" Font-Names="方正行楷简体" Style="left: 25px; position: absolute;
top: 57px" Text="序号:"></asp:Label>
<asp:TextBox ID="TextBox2" runat="server" Style="left: 71px; position: absolute;
top: 56px" Width="45px"></asp:TextBox>
<asp:Label ID="Label4" runat="server" Font-Names="方正行楷简体" Style="left: 25px; position: absolute;
top: 98px" Text="信息:"></asp:Label>
<asp:TextBox ID="TextBox3" runat="server" Height="84px" Style="left: 68px; position: absolute;
top: 99px" Width="202px"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Font-Names="方正行楷简体" OnClick="Button1_Click"
Style="left: 302px; position: absolute; top: 105px" Text="添加类别" ValidationGroup="leibie"
Width="121px" />
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
ErrorMessage="类名不能为空" Style="left: 191px; position: absolute; top: 13px" ValidationGroup="leibie"></asp:RequiredFieldValidator>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox2"
ErrorMessage="序号不能为空" Style="left: 141px; position: absolute; top: 58px" ValidationGroup="leibie"></asp:RequiredFieldValidator>
<asp:Label ID="Label5" runat="server" ForeColor="Red" Style="left: 198px; position: absolute;
top: 11px" Width="100px"></asp:Label>
<asp:Label ID="Label6" runat="server" ForeColor="Red" Style="left: 152px; position: absolute;
top: 57px" Width="126px"></asp:Label>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -