|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
asp对于服务器的要求较高,一般的服务器如果访问量一大就垮了,不得不重启。web|上传|上传<%@Pagelanguage="c#"Codebehind="feUploadPic.aspx.cs"AutoEventWireup="false"Inherits="cj168.Web.Mag.Admins.FeData.feUploadPic"%>
<%@RegisterTagPrefix="cj168"TagName="Header"Src="modules/headerFe.ascx"%>
<!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.0Transitional//EN">
<HTML>
<HEAD>
<title>fedata</title>
<metacontent="MicrosoftVisualStudio7.0"name="GENERATOR">
<metacontent="C#"name="CODE_LANGUAGE">
<metacontent="JavaScript"name="vs_defaultClientScript">
<metacontent="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>
<bodyMS_POSITIONING="GridLayout">
<tablewidth="100%">
<tr>
<td><cj168:headerid="Header1"runat="server"></cj168:header></td>
</tr>
</table>
<formid="fedata"method="post"encType="multipart/form-data"runat="server">
<TABLEid="Table1"cellSpacing="0"cellPadding="1"width="750"border="1">
<TR>
<TDwidth="70">图片题目</TD>
<TD><asp:textboxid="txtboxPicTitle"runat="server"></asp:textbox><br>
<asp:requiredfieldvalidatorid="Requiredfieldvalidator1"runat="server"ErrorMessage="请填写图片题目。"CSSClass="valid"ControlToValidate="txtboxPicTitle"></asp:requiredfieldvalidator><br>
<asp:regularexpressionvalidatorid="vldCatName"ErrorMessage="图片题目最少2个字符,不该包括’“”!@#$%^&*()《》{}[]?。,?¥"CssClass="valid"ControlToValidate="txtboxPicTitle"ValidationExpression="[^’^“^”^^!^@^#^$^%^^^&^*^(^)^<^>^《^》^?^。^,^?^¥^{^}^][^]]{2,}"Runat="server"></asp:regularexpressionvalidator></TD>
</TR>
<TR>
<TD>图片日期</TD>
<TD><asp:textboxid="txtboxPicDate"runat="server"Width="300"></asp:textbox><asp:calendarid="calPicDate"runat="server"CssClass="calPicDate"Width="300"SelectMonthText="本月"SelectWeekText="本周"NextPrevFormat="FullMonth"OnSelectionChanged="CalDateSelected">
<NextPrevStyleCssClass="calPicDate"></NextPrevStyle>
<WeekendDayStyleForeColor="red"></WeekendDayStyle>
<TodayDayStyleFont-Bold="True"ForeColor="red"BackColor="#ccccff"></TodayDayStyle>
<SelectedDayStyleBackColor="black"Font-Bold="true"></SelectedDayStyle>
</asp:calendar><BR>
<asp:requiredfieldvalidatorid="Requiredfieldvalidator2"runat="server"ErrorMessage="请选择或填写图片日期。"CssClass="valid"ControlToValidate="txtboxPicDate"></asp:requiredfieldvalidator><br>
<asp:customvalidatorid="CustomValidator1"ErrorMessage="不是个无效的日期格局"CssClass="valid"ControlToValidate="txtboxPicDate"Runat="server"OnServerValidate="ServerValidateCheckDate"&g</p>结论:和PHP一样,ASP简单而易于维护,很适合小型网站应用,通过DCOM和MTS技术,ASP甚至还可以完成小规模的企业应用,但ASP的致命缺点就是不支持跨平台的系统,在大型项目开发和维护上非常困难。 |
|