📄 newsfabu.aspx
字号:
<%@ Page Language="C#" MasterPageFile="~/GeneralUser.master" AutoEventWireup="true" EnableViewState ="false"
CodeFile="newsfabu.aspx.cs" Inherits="newsfabu" Title="新闻发布" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<table style="width: 737px">
<tr>
<td colspan="2">
<asp:Image ID="Image1" runat="server" ImageUrl="~/images/newsfabu.png" Width="548px" /></td>
</tr>
<tr>
<td style="height: 26px; font-size: 12px;" colspan="2">
<asp:Label ID="Label1" runat="server" Font-Names="宋体" Font-Size="9pt" Text="新闻标题"></asp:Label>
<asp:TextBox ID="txtTitle" runat="server" MaxLength="20" Font-Size="12px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtTitle"
ErrorMessage="新闻标题不能为空" ValidationGroup="a"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td style="font-size: 12px; height: 26px;" colspan="2">
<asp:Label ID="Label2" runat="server" Font-Names="宋体" Font-Size="9pt" Text="信息属性"></asp:Label>
<asp:DropDownList ID="ddlAttribute" runat="server" Width="153px" DataSourceID="SqlDataSource1" DataTextField="CLASSNAME" DataValueField="CLASSNAME" Font-Size="12px">
</asp:DropDownList></td>
</tr>
<tr>
<td style="font-size: 12px; height: 26px;" colspan="2">
<asp:Label ID="Label3" runat="server" Font-Names="宋体" Font-Size="9pt" Text="发布人"></asp:Label>
<asp:TextBox ID="txtPeople" runat="server" Enabled="False" Font-Size="12px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPeople"
ErrorMessage="发布人不能为空" ValidationGroup="a"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td style="height: 26px; font-size: 12px;" colspan="2">
<asp:Label ID="Label4" runat="server" Font-Names="宋体" Font-Size="9pt" Text="发布日期"></asp:Label>
<asp:TextBox ID="txtTime" runat="server" Enabled="False" Font-Size="12px"></asp:TextBox>
</td>
</tr>
<tr>
<td style="font-size: 12px; height: 26px;" colspan="2">
<asp:Label ID="Label5" runat="server" Font-Names="宋体" Font-Size="9pt" Text="关键字"></asp:Label>
<asp:TextBox ID="txtWord" runat="server" MaxLength="10" Font-Size="12px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtWord"
ErrorMessage="关键字不能为空" ValidationGroup="a"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td style="height: 26px; font-size: 12px;" colspan="2">
<asp:Label ID="Label6" runat="server" Font-Names="宋体" Font-Size="9pt" Text="信息来源"></asp:Label>
<asp:TextBox ID="txtSource" runat="server" MaxLength="10" Font-Size="12px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtSource"
ErrorMessage="信息来源不能为空" ValidationGroup="a"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td style="width: 106px; font-size: 12px; height: 26px;">
<asp:Label ID="Label7" runat="server" Font-Names="宋体" Font-Size="9pt" Text="信息内容"></asp:Label></td>
<td style="width: 192px; font-size: 12px; height: 26px;">
<asp:TextBox ID="txtText" runat="server" TextMode="MultiLine" Width="346px" Height="225px" MaxLength="3000" Font-Size="12px"></asp:TextBox>
<asp:Label ID="Label8" runat="server" ForeColor="Red" Text="信息内容的长度不能超过3000个字符" Width="265px"></asp:Label>
<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtText"
ErrorMessage="信息内容不能为空" Display="Dynamic" ValidationGroup="a"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td colspan="2" style="font-size: 12px; width: 192px; height: 26px" align="center">
<asp:Button ID="btnSave" runat="server"
Text="保存" OnClick="btnSave_Click" ValidationGroup="a" />
<asp:Button ID="btnCancel" runat="server" Text="取消" OnClick="btnCancel_Click" />
</td>
</tr>
</table>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:news_manageConnectionString2 %>"
SelectCommand="SELECT [CLASSNAME] FROM [t_Class]"></asp:SqlDataSource>
</asp:Content>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -