add_news.aspx
资源名称:xwfbxt.rar [点击查看]
上传用户:tongfeicq
上传日期:2022-07-20
资源大小:2856k
文件大小:4k
源码类别:
.net编程
开发平台:
Visual C++
- <%@ page language="C#" masterpagefile="admin.master" autoeventwireup="true" inherits="admin_add_news, oyaya" validaterequest="false" title="Untitled Page" %>
- <%@ Register TagPrefix="FTB" Namespace="FreeTextBoxControls" Assembly="FreeTextBox"%>
- <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
- 添加文章
- </asp:Content>
- <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
- <table border="0" cellpadding="0" cellspacing="0" class="top_table" width="750">
- <tr>
- <td class="top_table_td2">添加文章</td>
- </tr>
- <tr>
- <td height="30" align="right" valign="middle" style="width: 137px">新闻标题:</td>
- <td colspan="2" valign="middle" align="left">
- <asp:TextBox ID="TextBox1" runat="server" Height="13px" Width="341px"></asp:TextBox></td>
- </tr>
- <tr>
- <td height="30" align="right" valign="middle" style="width: 137px">新闻来源:</td>
- <td colspan="2" align="left" valign="middle">
- <asp:TextBox ID="TextBox2" runat="server" Height="13px" Width="341px"></asp:TextBox></td>
- </tr>
- <tr>
- <td height="30" align="right" valign="middle" style="width: 137px">责任编辑:</td>
- <td width="412" align="left" valign="middle">
- <asp:TextBox ID="TextBox3" runat="server" Height="13px" Width="341px"></asp:TextBox></td>
- <td width="224" rowspan="3" align="center" valign="middle"><asp:Image ID="Image1" runat="server" ImageUrl="~/images/nonebig.gif" Height="106px" Width="135px" /> </td>
- </tr>
- <tr>
- <td height="30" align="right" valign="middle" style="width: 137px">新闻分类:</td>
- <td valign="middle" align="left">
- <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" onselectedindexchanged="DropDownList1_SelectedIndexChanged"> </asp:DropDownList> <asp:DropDownList ID="DropDownList2" runat="server"> </asp:DropDownList>
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle" style="width: 137px">新闻图片:<br />
- <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="FileUpload1"
- ErrorMessage="请选择图片!" ValidationGroup="bb"></asp:RequiredFieldValidator></td>
- <td valign="middle" style="height: 24px" align="left">
- <asp:FileUpload ID="FileUpload1" runat="server" CssClass="TextBox" Width="259px" />
- <asp:Button ID="Button2" runat="server" CssClass="Button" Text="上传图片" OnClick="Button2_Click" ValidationGroup="bb" Width="82px" />
- <br />
-
- <asp:TextBox ID="TextBox4" runat="server" Width="338px" ></asp:TextBox> </td>
- </tr>
- <tr>
- <td align="right" valign="middle" style="height: 353px; width: 137px;"> 新闻内容:<br />
- <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="FreeTextBox1"
- ErrorMessage="内容不能为空!" ValidationGroup="aa"></asp:RequiredFieldValidator></td>
- <td colspan="2" valign="top" align="center" style="height: 353px">
- <FTB:FreeTextBox ID="FreeTextBox1" runat="server" SupportFolder="FreeTextBox/" ButtonSet="Office2003" Height="350px" Width="608px" ToolbarStyleConfiguration="Office2003" /> </td>
- </tr>
- <tr>
- <td height="20" align="right" valign="middle" style="width: 137px"> </td>
- <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" />
- <asp:Label ID="Label1" runat="server"></asp:Label></td>
- </tr>
- </table>
- </asp:Content>