web|上传|上传<% Page language="c#" Codebehind="feUploadPic.aspx.cs" AutoEventWireup="false" Inherits="cj168.Web.Mag.Admins.FeData.feUploadPic" %>
<% Register TagPrefix="cj168" TagName="Header" Src="modules/headerFe.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>fedata</title>
<meta content="Microsoft Visual Studio 7.0" 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">
<style>BODY { FONT-SIZE: 9pt }
.calPicDate { FONT-SIZE: 9pt; FONT-FAMILY: Verdana, Helvetica, sans-serif }
.valid { FONT-SIZE: 9pt; COLOR: red }
TD { FONT-SIZE: 9pt }
</style>
</HEAD>
<body MS_POSITIONING="GridLayout">
<table width="100%">
<tr>
<td><cj168:header id="Header1" runat="server"></cj168:header></td>
</tr>
</table>
<form id="fedata" method="post" encType="multipart/form-data" runat="server">
<TABLE id="Table1" cellSpacing="0" cellPadding="1" width="750" border="1">
<TR>
<TD width="70">图片标题</TD>
<TD><asp:textbox id="txtboxPicTitle" runat="server"></asp:textbox>
<asp:requiredfieldvalidator id="Requiredfieldvalidator1" runat="server" ErrorMessage="请填写图片标题。" CssClass="valid" ControlToValidate="txtboxPicTitle"></asp:requiredfieldvalidator>
<asp:regularexpressionvalidator id="vldCatName" ErrorMessage="图片标题至少2个字符,不应包含’“ ” ! # $ % ^ & * ( ) < > 《 》{ } [ ] ? 。,? ¥" CssClass="valid" ControlToValidate="txtboxPicTitle" ValidationExpression="[^’^“^”^\^!^^#^$^%^\^^&^*^(^)^<^>^《^》^?^。^,^?^¥^\{^\}^\][^\]]{2,}" Runat="server"></asp:regularexpressionvalidator></TD>
</TR>
<TR>
<TD>图片日期</TD>
<TD><asp:textbox id="txtboxPicDate" runat="server" Width="300"></asp:textbox><asp:calendar id="calPicDate" runat="server" CssClass="calPicDate" Width="300" SelectMonthText="本月" SelectWeekText="本周" NextPrevFormat="FullMonth" OnSelectionChanged="CalDateSelected">
<NextPrevStyle CssClass="calPicDate"></NextPrevStyle>
<WeekendDayStyle ForeColor="red"></WeekendDayStyle>
<TodayDayStyle Font-Bold="True" ForeColor="red" BackColor="#ccccff"></TodayDayStyle>
<SelectedDayStyle BackColor="black" Font-Bold="true"></SelectedDayStyle>
</asp:calendar>
<asp:requiredfieldvalidator id="Requiredfieldvalidator2" runat="server" ErrorMessage="请选择或填写图片日期。" CssClass="valid" ControlToValidate="txtboxPicDate"></asp:requiredfieldvalidator>
<asp:customvalidator id="CustomValidator1" ErrorMessage="不是个有效的日期格式" CssClass="valid" ControlToValidate="txtboxPicDate" Runat="server" OnServerValidate="ServerValidateCheckDate"&g
图片上传的WebForm(自动生成所略图)
80酷酷网 80kuku.com