温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:Web图片管理系统代码
当前文件:
PictureManager/Upload.aspx,打开代码结构图
PictureManager/Upload.aspx,打开代码结构图1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Upload.aspx.cs" Inherits="Upload" %> 2
3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 4
5
<html xmlns="http://www.w3.org/1999/xhtml" > 6
<head runat="server"> 7
<title>上传图片</title> 8
</head> 9
<body> 10
<form id="form1" runat="server"> 11
<div> 12
<asp:Label ID="lable1" runat="server" Text="图片名称:" Width="90px"></asp:Label> 13
14
<asp:TextBox ID="tbxPicName" runat="server" CausesValidation="True"></asp:TextBox> 15
<asp:RequiredFieldValidator ID="rfvNameNotNull" runat="server" ErrorMessage="*名称不能为空" Width="130px" ControlToValidate="tbxPicName"></asp:RequiredFieldValidator><br /> 16
<br /> 17
<asp:Label ID="lable2" runat="server" Text="图片路径:" Width="90px"></asp:Label> 18
<asp:FileUpload ID="tbxPicPath" runat="server" Width="433px" /> 19
<br /> 20
<br /> 21
22
23
<asp:Button ID="btnUploadPic" runat="server" OnClick="btnUploadPic_Click" Text="上传图片" 24
Width="100px" Enabled="False" /> 25
26
<asp:Button ID="btnReturn" runat="server" OnClick="btnReturn_Click" Text="返回" Width="100px" CausesValidation="False" /> 27
28
</div> 29
</form> 30
</body> 31
</html> 32



