📄 dp_check1.aspx
字号:
<%@ Page language="c#" Inherits="DP_Check1" CodeFile="DP_Check1.aspx.cs" Debug="True"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>生活人家电子商务(B2B)网 -- 仓库里的商品</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<LINK href="style.css" type="text/css" rel="stylesheet">
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<TABLE id="Table1" cellSpacing="1" cellPadding="1" width="100%">
<TR>
<TD vAlign="top">
<asp:textbox id="TextBox1" runat="server"></asp:textbox>
<asp:button id="Button1" runat="server" Text="查询" onclick="Button1_Click"></asp:button>
<asp:label id="Label1" runat="server" ForeColor="Red"></asp:label>
</TD>
</TR>
</TABLE>
<!-- 分页 -->
<asp:datagrid id="DataGrid1" runat="server" OnDeleteCommand="DataGrid1_DeleteCommand" OnUpdateCommand="DataGrid1_UpdateCommand"
OnEditCommand="DataGrid1_EditCommand" Width="100%" AutoGenerateColumns="False" Font-Size="X-Small" onselectedindexchanged="DataGrid1_SelectedIndexChanged" BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" CellPadding="2" ForeColor="Black" GridLines="None" Height="180px">
<Columns>
<asp:BoundColumn DataField="ProductId" ReadOnly="True" HeaderText="商品编号"></asp:BoundColumn>
<asp:BoundColumn DataField="ProductName" ReadOnly="True" HeaderText="商品名称"></asp:BoundColumn>
<asp:BoundColumn DataField="ProductType" ReadOnly="True" HeaderText="商品类型"></asp:BoundColumn>
<asp:BoundColumn DataField="ProductPrice" ReadOnly="True" HeaderText="价格"></asp:BoundColumn>
<asp:BoundColumn DataField="ProductQuantity" ReadOnly="True" HeaderText="数量"></asp:BoundColumn>
<asp:BoundColumn DataField="ProductBegin" ReadOnly="True" HeaderText="发布时间"></asp:BoundColumn>
<asp:EditCommandColumn ButtonType="PushButton" UpdateText="修改" HeaderText="编辑" CancelText="删除" EditText="编辑"></asp:EditCommandColumn>
<asp:ButtonColumn Text="上架" ButtonType="PushButton" HeaderText="上架" CommandName="Delete"></asp:ButtonColumn>
</Columns>
<FooterStyle BackColor="Tan" />
<SelectedItemStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
<PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" HorizontalAlign="Center" />
<AlternatingItemStyle BackColor="PaleGoldenrod" />
<HeaderStyle BackColor="Tan" Font-Bold="True" />
</asp:datagrid>
<br />
<table id="page" width="100%">
<tr align=center>
<td>
<asp:label id="lblCurPage" Runat="server"></asp:label>
<asp:Label id="lblEachPage" Runat="server"></asp:Label>
<asp:Label id="lblTnum" Runat="server"></asp:Label>
<asp:hyperlink id="lnkFirst" Runat="server"> 第一页 </asp:hyperlink>
<asp:hyperlink id="lnkPrev" Runat="server"> 上一页 </asp:hyperlink>
<asp:hyperlink id="lnkNext" Runat="server"> 下一页 </asp:hyperlink>
<asp:hyperlink id="lnkLast" Runat="server"> 最后页 </asp:hyperlink>
到:<asp:TextBox id="txtPage" Runat="server" Width="32px"></asp:TextBox>
页<asp:Button id="btnPage" Runat="server" Width="32px" Text="Go" onclick="btnPage_Click"></asp:Button></td>
</tr>
</table>
</form>
</body>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -