📄 webform1.aspx
字号:
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="Super_Market.WebForm1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>index</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">
</HEAD>
<body MS_POSITIONING="GridLayout" bgColor="#ccccff">
<form id="Form1" method="post" runat="server">
<FONT face="宋体">
<asp:dropdownlist id="DropDownList1" style="Z-INDEX: 101; LEFT: 48px; POSITION: absolute; TOP: 136px"
runat="server" AutoPostBack="True" Height="100px" Width="80px"></asp:dropdownlist><asp:dropdownlist id="DropDownList2" style="Z-INDEX: 102; LEFT: 168px; POSITION: absolute; TOP: 136px"
runat="server" AutoPostBack="True" Width="80px"></asp:dropdownlist><asp:dropdownlist id="DropDownList3" style="Z-INDEX: 103; LEFT: 288px; POSITION: absolute; TOP: 136px"
runat="server" AutoPostBack="True" Width="80px"></asp:dropdownlist><asp:dropdownlist id="DropDownList4" style="Z-INDEX: 104; LEFT: 408px; POSITION: absolute; TOP: 136px"
runat="server" AutoPostBack="True" Width="80px"></asp:dropdownlist><asp:button id="Button1" style="Z-INDEX: 105; LEFT: 48px; POSITION: absolute; TOP: 208px" runat="server"
Width="72px" Text="查 询" ForeColor="Blue" BackColor="#C0C0FF" BorderColor="#8080FF"></asp:button><asp:label id="Label1" style="Z-INDEX: 106; LEFT: 48px; POSITION: absolute; TOP: 80px" runat="server"
Width="152px" ForeColor="Blue" Font-Size="Larger" Font-Italic="True" Height="30px">* 商品价格查询 *</asp:label></FONT>
<hr style="Z-INDEX: 107; LEFT: 8px; POSITION: absolute; TOP: 112px" width="100%" color="silver"
SIZE="1">
<FONT face="宋体">
<HR style="Z-INDEX: 108; LEFT: 8px; POSITION: absolute; TOP: 192px" width="100%" color="silver"
SIZE="1">
<asp:label id="Message" style="Z-INDEX: 109; LEFT: 48px; POSITION: absolute; TOP: 384px" runat="server"></asp:label><asp:datagrid id="DataGrid1" style="Z-INDEX: 110; LEFT: 48px; POSITION: absolute; TOP: 256px"
runat="server" Width="400px" BorderWidth="2px" BorderColor="CornflowerBlue" BackColor="AliceBlue" AutoGenerateColumns="False" AllowSorting="True" OnEditCommand="DataGrid_Edit" OnDeleteCommand="DataGrid_Delete"
OnCancelCommand="DataGrid_Cancel" DataKeyField="id" OnUpdateCommand="DataGrid_Updata" CellPadding="2">
<EditItemStyle Wrap="False" BackColor="#99CCFF"></EditItemStyle>
<Columns>
<asp:BoundColumn Visible="False" DataField="type_code" HeaderText="type_code"></asp:BoundColumn>
<asp:EditCommandColumn ButtonType="LinkButton" UpdateText="更新" CancelText="取消" EditText="编辑">
<ItemStyle Wrap="False" Width="100px"></ItemStyle>
</asp:EditCommandColumn>
<asp:ButtonColumn Text="删除" CommandName="Delete">
<ItemStyle Wrap="False" Width="60px"></ItemStyle>
</asp:ButtonColumn>
<asp:BoundColumn DataField="type_name" ReadOnly="True" HeaderText="商品名称">
<HeaderStyle Width="120px"></HeaderStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="price" HeaderText="价格">
<HeaderStyle Width="120px"></HeaderStyle>
</asp:BoundColumn>
</Columns>
</asp:datagrid></FONT>
<HR style="Z-INDEX: 111; LEFT: 0px; POSITION: absolute; TOP: 376px" width="100%" color="silver"
SIZE="1">
<asp:hyperlink id="HyperLink1" style="Z-INDEX: 112; LEFT: 456px; POSITION: absolute; TOP: 376px"
runat="server" BorderColor="#ccff66" NavigateUrl="add.aspx">添加新商品</asp:hyperlink>
<asp:Label id="Label_error" style="Z-INDEX: 113; LEFT: 168px; POSITION: absolute; TOP: 208px"
runat="server" ForeColor="Red" Visible="False">没商品怎么查!</asp:Label></form>
</body>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -