📄 productedit.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Productedit.aspx.cs" Inherits="admin_Productedit" ValidateRequest="false" %>
<%@ Register Src="../mycontrols/upfile.ascx" TagName="upfile" TagPrefix="uc1" %>
<%@ Register Assembly="DotNetTextBox" Namespace="DotNetTextBox" TagPrefix="DNTB" %>
<!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 id="Head1" runat="server">
<LINK href="images/css.css" type=text/css rel=stylesheet>
<script src="../js/validator.js"></script>
</head>
<body>
<form id="form1" runat="server">
<TABLE cellSpacing=1 cellPadding=0 width="96%" bgColor=#f0f0f0
border=0>
<TBODY>
<TR bgColor=#f0f0f0>
<TD colSpan=2 height=25> <IMG height=14
src="images/title.gif" width=14> 修改产品</TD>
</TR>
<TR bgColor=#ffffff>
<TD height=25 align=right style="width: 87px">产品名称:</TD>
<TD width="820" align="left" style="width: 628px"> <asp:TextBox ID="Proname" runat="server" ></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="Proname"
ErrorMessage="产品名称不能为空"></asp:RequiredFieldValidator></TD></TR>
<TR bgColor=#ffffff>
<TD align=right height=25 style="width: 87px">产品类别:</TD>
<TD style="width: 628px" align="left"> <asp:DropDownList ID="BigClass" runat="server">
</asp:DropDownList></TD>
</TR>
<TR bgColor=#ffffff>
<TD align=right height=25 style="width: 87px">市场价格:</TD>
<TD style="width: 628px" align="left"> <asp:TextBox ID="MarketPrice" runat="server"></asp:TextBox>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="MarketPrice"
ErrorMessage="价格格式应为小数点后两位" ValidationExpression="^(0|[1-9]\d*)(\.\d{1,2})?$"></asp:RegularExpressionValidator>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="MarketPrice"
ErrorMessage="价格不能为空"></asp:RequiredFieldValidator></TD></TR>
<TR bgColor=#ffffff>
<TD height=35 align="right" style="width: 87px">会员价格:</TD>
<TD style="width: 628px" align="left"> <asp:TextBox ID="MemberPrice" runat="server"></asp:TextBox>
<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="MemberPrice"
ErrorMessage="价格格式应为小数点后两位" ValidationExpression="^(0|[1-9]\d*)(\.\d{1,2})?$"></asp:RegularExpressionValidator>
</TD>
</TR>
<TR bgColor=#ffffff>
<TD height=35 align="right" style="width: 87px">是否热卖:</TD>
<TD style="width: 628px" align="left"> <asp:RadioButtonList ID="Hot" runat="server" RepeatDirection="Horizontal">
<asp:ListItem >热卖</asp:ListItem>
<asp:ListItem>非热卖</asp:ListItem>
</asp:RadioButtonList></TD>
</TR>
<TR bgColor=#ffffff>
<TD height=35 align="right" style="width: 87px">是否特价:</TD>
<TD style="width: 628px" align="left"> <asp:RadioButtonList ID="Tejia" runat="server" RepeatDirection="Horizontal">
<asp:ListItem >特价</asp:ListItem>
<asp:ListItem>非特价</asp:ListItem>
</asp:RadioButtonList></TD>
</TR>
<TR bgColor=#ffffff>
<TD height=35 align="right" style="width: 87px">是否精品:</TD>
<TD style="width: 628px" align="left"> <asp:RadioButtonList ID="Jipin" runat="server" RepeatDirection="Horizontal">
<asp:ListItem >精品</asp:ListItem>
<asp:ListItem>非精品</asp:ListItem>
</asp:RadioButtonList></TD>
</TR> <TR bgColor=#ffffff>
<TD align=right height=25 style="width: 87px">产品图片:</TD>
<TD style="width: 628px" align="left">
<uc1:upfile ID="Pic" runat="server" />
</TD>
</TR>
<TR bgColor=#ffffff>
<TD align="right" style="height: 35px; width: 87px;">详细介绍:</TD>
<TD style="width: 628px; height: 35px;" align="left"> <DNTB:WebEditor ID="Content" runat="server" />
</TD>
</TR>
<TR bgColor=#ffffff>
<TD style="height: 35px; width: 87px;"> </TD>
<TD style="width: 628px; height: 35px" align="left">
<asp:Button ID="Button2" runat="server" Text="修改" CssClass="submit" Width="60px" OnClick="Button2_Click" />
<asp:Button ID="Button1" runat="server" Text="重置" CssClass="submit" Width="60px" OnClick="Button1_Click" /></TD></TR></TBODY></TABLE>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -