📄 amodify.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AModify.aspx.cs" Inherits="AModify" %>
<!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 style="background-image: url(picture/back.jpg)">
<table>
<tr>
<td style="width: 231px">
<asp:Label ID="Label1" runat="server" BackColor="#8080FF" ForeColor="#FFC080" Text="欢迎回来管理员" Width="122px"></asp:Label></td>
<td style="width: 318px">
<asp:LinkButton ID="LinkButton1" runat="server" PostBackUrl="~/ALS.aspx">用户充值</asp:LinkButton>
</td>
<td style="width: 80px">
<asp:Button ID="Button1" runat="server" Text="管理员退出" OnClick="Button1_Click1" /></td>
</tr>
<tr>
<td style="width: 231px; height: 323px">
</td>
<td style="width: 318px; height: 323px">
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" CellPadding="2" ForeColor="Black" GridLines="None" Height="302px" Width="515px" OnRowEditing="GridView1_RowEditing" OnRowDeleting="GridView1_RowDeleting" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowUpdating="GridView1_RowUpdating" PageSize="4" OnRowDataBound="GridView1_RowDataBound" OnPageIndexChanging="GridView1_PageIndexChanging" BorderStyle="Outset" CellSpacing="1">
<FooterStyle BackColor="Tan" />
<Columns>
<asp:BoundField HeaderText="序号" DataField="序号" ReadOnly="True" >
<ControlStyle Width="50px" />
</asp:BoundField>
<asp:TemplateField HeaderText="照片">
<ItemTemplate>
<asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("照片")%>' />
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField HeaderText="名称" DataField="名称" >
<ControlStyle Width="50px" />
</asp:BoundField>
<asp:BoundField HeaderText="价格" DataField="价格" >
<ControlStyle Width="50px" />
</asp:BoundField>
<asp:BoundField HeaderText="描述" DataField="描述" >
<ControlStyle Width="100px" />
</asp:BoundField>
<asp:CommandField ShowEditButton="True" HeaderText="修改" >
<ControlStyle Width="50px" />
</asp:CommandField>
<asp:CommandField ShowDeleteButton="True" HeaderText="删除" >
<ControlStyle Width="50px" />
</asp:CommandField>
</Columns>
<SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
<PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" HorizontalAlign="Center" BorderColor="Red" />
<HeaderStyle BackColor="Tan" Font-Bold="True" />
<AlternatingRowStyle BackColor="PaleGoldenrod" />
<RowStyle Width="120px" />
<PagerSettings Mode="NumericFirstLast" />
<EditRowStyle BackColor="#8080FF" />
</asp:GridView>
</td>
<td style="width: 80px; height: 323px">
</td>
</tr>
<tr>
<td style="width: 231px">
</td>
<td style="width: 318px">
<table>
<tr>
<td style="width: 515px; height: 26px;">
<asp:Label ID="Label5" runat="server" Text="宝贝照片" Width="136px"></asp:Label></td>
<td style="width: 174px; height: 26px;">
<asp:FileUpload ID="FileUpload1" runat="server" BackColor="#FFFFC0" /></td>
<td style="width: 98px; height: 26px;">
<asp:Label ID="Label6" runat="server" Width="174px"></asp:Label></td>
</tr>
<tr>
<td style="width: 515px; height: 26px;">
<asp:Label ID="Label2" runat="server" Text="宝贝名称" Width="131px"></asp:Label></td>
<td style="width: 174px; height: 26px;">
<asp:TextBox ID="Tbx_Gname" runat="server" BackColor="#FFFFC0"></asp:TextBox></td>
<td style="width: 98px; height: 26px;">
</td>
</tr>
<tr>
<td style="width: 515px">
<asp:Label ID="Label3" runat="server" Text="批发价" Width="132px"></asp:Label></td>
<td style="width: 174px">
<asp:TextBox ID="Tbx_Gprice" runat="server" BackColor="#FFFFC0"></asp:TextBox></td>
<td style="width: 98px">
</td>
</tr>
<tr>
<td style="width: 515px; height: 158px">
<asp:Label ID="Label4" runat="server" Text="宝贝详情"></asp:Label></td>
<td colspan="2" style="height: 158px">
<asp:TextBox ID="Tbx_Gdept" runat="server" TextMode="MultiLine" BackColor="#FFFFC0" Height="130px" Width="369px"></asp:TextBox></td>
</tr>
<tr>
<td colspan="2" style="height: 30px">
<asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="保存" BackColor="#FF8000" BorderColor="Lavender" Font-Bold="True" Font-Italic="False" Font-Names="Arial Black" Font-Overline="False" Font-Size="Small" ForeColor="Blue" ToolTip="保存设置" Width="222px" /></td>
<td style="width: 98px; height: 30px;">
<asp:Label ID="Label7" runat="server" Width="249px"></asp:Label></td>
</tr>
</table>
</td>
<td style="width: 80px">
</td>
</tr>
</table>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -