前台页面:
<h2 class="mt20">活动/宣传信息</h2>
<table width="860" class="info_tab3 ctabt" id="table2">
<tr>
<th width="15%">活动名称</th>
<td><asp:TextBox ID="activityname" size="78" runat="server" TextName="活动名称" MaxLength="100" ></asp:TextBox><span class="title_red">*</span></td>
</tr>
<tr>
<th>活动概要</th>
<td>
<asp:TextBox ID="summary" Width="420px" runat="server" Height="55" TextMode="MultiLine" onpropertychange="MaxLength(this,300)"></asp:TextBox></td>
</tr>
<tr>
<th>活动时间段</th>
<td> <asp:TextBox ID="time" size="78" runat="server" MaxLength="40" ></asp:TextBox></td>
</tr>
<tr>
<th>活动地区</th>
<td><asp:TextBox ID="area" Width="420px" runat="server" Height="55" TextMode="MultiLine" onpropertychange="MaxLength(this,300)"></asp:TextBox></td>
</tr>
<tr>
<th>活动地点</th>
<td> <asp:TextBox ID="address" size="78" runat="server" MaxLength="100" ></asp:TextBox></td>
</tr>
<tr>
<th>宣传媒体</th>
<td><asp:TextBox ID="media" size="78" runat="server" MaxLength="100" ></asp:TextBox></td>
</tr>
</table>
<h2 class="mt20">上传附件</h2>
<tr align="left">
<div class="boperation" >
<center>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" RenderMode="Block" UpdateMode="Conditional">
<ContentTemplate>
其他格式促销资料:<asp:FileUpload ID="fuPhoto" runat="server" onchange="PreviewImg();"
Width="300px" />
</ContentTemplate>
<Triggers>
<asp:PostBackTrigger ControlID="delA" />
</Triggers>
</asp:UpdatePanel>
<asp:HyperLink ID="filePath" runat="server" Target="_blank" Visible="false" ></asp:HyperLink>
<asp:LinkButton Visible="false" ID="delA" Text="[X]" runat="server" OnCommand="delA_Click"></asp:LinkButton>
<asp:HiddenField ID="fileUploadPath" runat="server" />
<asp:UpdatePanel ID="UpdatePanelFileUpload" runat="server" RenderMode="Block" UpdateMode="Conditional">
<Triggers>
<asp:PostBackTrigger ControlID="lbUploadPhoto" />
</Triggers>
</asp:UpdatePanel>
<asp:LinkButton ID="lbUploadPhoto" runat="server" style="display:none" Text="aa" OnClick="lbUpload_Click"></asp:LinkButton>
</center>
<table width="860"
</table>
<h2 class="mt20">上传附件</h2>
<tr align="left">
<div class="boperation"
<center>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" RenderMode="Block" UpdateMode="Conditional">
</asp:UpdatePanel>
<asp:HyperLink ID="filePath" runat="server" Target="_blank" Visible="false" ></asp:HyperLink>
<asp:LinkButton Visible="false" ID="delA" Text="[X]" runat="server" OnCommand="delA_Click"></asp:LinkButton>
<asp:HiddenField ID="fileUploadPath" runat="server" />
</asp:UpdatePanel>
<asp:LinkButton ID="lbUploadPhoto" runat="server" style="display:none" Text="aa" OnClick="lbUpload_Click"></asp:LinkButton>
</center>
后台处理:
保存