update_news.aspx
上传用户:tongfeicq
上传日期:2022-07-20
资源大小:2856k
文件大小:4k
源码类别:

.net编程

开发平台:

Visual C++

  1. <%@ page language="C#" masterpagefile="admin.master" autoeventwireup="true" inherits="admin_update_news, oyaya" validaterequest="false" title="Untitled Page" %>
  2. <%@ Register TagPrefix="FTB" Namespace="FreeTextBoxControls" Assembly="FreeTextBox"%>
  3. <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
  4.     添加文章
  5. </asp:Content>
  6. <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
  7.       <table border="0" cellpadding="0" cellspacing="0" class="top_table" width="750">
  8.         <tr>
  9.             <td class="top_table_td1">  </td>
  10.             <td class="top_table_td2" style="width: 425px"> 文章修改</td>
  11.             <td class="top_table_td3">
  12.             </td>
  13.         </tr>
  14.         <tr>
  15.           <td width="152" align="center" style="height: 30px">新闻标题:</td>
  16.           <td colspan="2" align="left" style="height: 30px">&nbsp;
  17.           <asp:TextBox ID="TextBox1" runat="server" Height="13px" Width="341px"></asp:TextBox></td>
  18.         </tr>
  19.         <tr>
  20.           <td width="152" align="center" style="height: 30px">文章来源:</td>
  21.           <td colspan="2" align="left" style="height: 30px">&nbsp;
  22.           <asp:TextBox ID="TextBox2" runat="server" Height="13px" Width="341px"></asp:TextBox></td>
  23.         </tr>
  24.         <tr>
  25.           <td width="152" height="30" align="center">责任编辑:</td>
  26.           <td align="left" style="width: 425px">&nbsp;
  27.           <asp:TextBox ID="TextBox3" runat="server" Height="13px" Width="341px"></asp:TextBox></td>
  28.           <td width="196" rowspan="3" align="center"><asp:Image ID="Image1" runat="server" ImageUrl="~/images/nonebig.gif" Height="106px" Width="105px" /></td>
  29.         </tr>
  30.         <tr>
  31.           <td height="30" align="center" valign="middle" >新闻分类:</td>
  32.           <td valign="middle" style="height: 14px; text-align: left; width: 425px;">&nbsp;
  33.               <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" onselectedindexchanged="DropDownList1_SelectedIndexChanged"></asp:DropDownList><asp:DropDownList ID="DropDownList2" runat="server"></asp:DropDownList>
  34.           &nbsp;</td>
  35.         </tr>
  36.         <tr>
  37.           <td height="50" align="center">新闻图片:<br />
  38.           <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="FileUpload1"
  39.                                 ErrorMessage="请选择图片!" ValidationGroup="bb"></asp:RequiredFieldValidator></td>
  40.           <td align="left" valign="middle" style="width: 425px">&nbsp;
  41.               <asp:FileUpload ID="FileUpload1" runat="server" CssClass="TextBox" Width="271px" />
  42.               <asp:Button ID="Button2" runat="server" CssClass="Button" Text="上传图片" OnClick="Button2_Click" ValidationGroup="bb" />        
  43.             &nbsp;<br />
  44.             &nbsp;
  45.             <asp:TextBox ID="TextBox4" runat="server" Width="349px" ></asp:TextBox>
  46.           </td>
  47.         </tr>
  48.         <tr>
  49.           <td align="center" valign="middle" style="height: 353px">新闻内容<br />
  50.           <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="FreeTextBox1"
  51.                                 ErrorMessage="内容不能为空!" ValidationGroup="aa"></asp:RequiredFieldValidator></td>
  52.           <td colspan="2" align="center" valign="top" style="height: 353px">&nbsp;&nbsp;
  53.               <FTB:FreeTextBox ID="FreeTextBox1" runat="server" SupportFolder="./FreeTextBox/" ButtonSet="Office2003" Height="350px" Width="600px" />
  54.           </td>
  55.         </tr>
  56.         <tr>
  57.           <td height="20" align="right" valign="middle">&nbsp;</td>
  58.           <td height="20" colspan="2"><asp:Button ID="Button1" runat="server" Style="font: menu; border-right: #003333 1px solid; border-top: #003333 1px solid; border-left: #003333 1px solid; border-bottom: #003333 1px solid;" Text="修改信息" Width="83px" OnClick="Button1_Click" />      
  59.               <asp:Label ID="Label1" runat="server"></asp:Label></td>
  60.         </tr>
  61.       </table>
  62. </asp:Content>