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

.net编程

开发平台:

Visual C++

  1. <%@ page language="C#" masterpagefile="admin.master" autoeventwireup="true" inherits="admin_add_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_td2">添加文章</td>
  10.         </tr>
  11.         <tr>
  12.           <td height="30" align="right" valign="middle" style="width: 137px">新闻标题:</td>
  13.           <td colspan="2" valign="middle" align="left">&nbsp;
  14.           <asp:TextBox ID="TextBox1" runat="server" Height="13px" Width="341px"></asp:TextBox></td>
  15.         </tr>
  16.         <tr>
  17.           <td height="30" align="right" valign="middle" style="width: 137px">新闻来源:</td>
  18.           <td colspan="2" align="left" valign="middle">&nbsp;
  19.           <asp:TextBox ID="TextBox2" runat="server" Height="13px" Width="341px"></asp:TextBox></td>
  20.         </tr>
  21.         <tr>
  22.           <td height="30" align="right" valign="middle" style="width: 137px">责任编辑:</td>
  23.           <td width="412" align="left" valign="middle">&nbsp;
  24.           <asp:TextBox ID="TextBox3" runat="server" Height="13px" Width="341px"></asp:TextBox></td>
  25.           <td width="224" rowspan="3" align="center" valign="middle"><asp:Image ID="Image1" runat="server" ImageUrl="~/images/nonebig.gif" Height="106px" Width="135px" />&nbsp;</td>
  26.         </tr>
  27.         <tr>
  28.           <td height="30" align="right" valign="middle" style="width: 137px">新闻分类:</td>
  29.           <td valign="middle" align="left">&nbsp;
  30.               <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" onselectedindexchanged="DropDownList1_SelectedIndexChanged"> </asp:DropDownList>  <asp:DropDownList ID="DropDownList2" runat="server"> </asp:DropDownList>
  31.           &nbsp;</td>
  32.         </tr>
  33.         <tr>
  34.           <td align="right" valign="middle" style="width: 137px">新闻图片:<br />
  35.           <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="FileUpload1"
  36.                                 ErrorMessage="请选择图片!" ValidationGroup="bb"></asp:RequiredFieldValidator></td>
  37.           <td valign="middle" style="height: 24px" align="left">&nbsp;
  38.               <asp:FileUpload ID="FileUpload1" runat="server" CssClass="TextBox" Width="259px" />
  39.               <asp:Button ID="Button2" runat="server" CssClass="Button" Text="上传图片" OnClick="Button2_Click" ValidationGroup="bb" Width="82px" />        
  40.             &nbsp;<br />
  41.             &nbsp;
  42.           <asp:TextBox ID="TextBox4" runat="server" Width="338px" ></asp:TextBox>          </td>
  43.         </tr>
  44.         <tr>
  45.           <td align="right" valign="middle" style="height: 353px; width: 137px;"> 新闻内容:<br />
  46.           <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="FreeTextBox1"
  47.                                 ErrorMessage="内容不能为空!" ValidationGroup="aa"></asp:RequiredFieldValidator></td>
  48.           <td colspan="2" valign="top" align="center" style="height: 353px">&nbsp;&nbsp;
  49.           <FTB:FreeTextBox ID="FreeTextBox1" runat="server" SupportFolder="FreeTextBox/" ButtonSet="Office2003" Height="350px" Width="608px" ToolbarStyleConfiguration="Office2003" />          </td>
  50.         </tr>
  51.         <tr>
  52.           <td height="20" align="right" valign="middle" style="width: 137px">&nbsp;</td>
  53.           <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" />      
  54.           <asp:Label ID="Label1" runat="server"></asp:Label></td>
  55.         </tr>
  56.       </table>
  57. </asp:Content>