📄 shownews.aspx
字号:
<%@ Page Language="C#" MasterPageFile="~/Admin/mstAdmin.master" AutoEventWireup="true" CodeFile="ShowNews.aspx.cs" Inherits="Admin_ShowNews" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<br />
审核新闻<br />
<br />
<table border="1" cellpadding="3" cellspacing="0" width="550">
<tr align="left">
<td width="100">
新闻标题:</td>
<td>
<asp:Label ID="lblTitle" runat="server"></asp:Label></td>
</tr>
<tr align="left">
<td>
新闻关键字:</td>
<td>
<asp:TextBox ID="tbxKeyword" runat="server" SkinID="tbxDefaultSkin" ToolTip="允许多个关键字之间以英文逗号隔开" ValidationGroup="News" Width="300px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tbxKeyword"
Display="Dynamic" ErrorMessage="输入关键字!" SetFocusOnError="True" ValidationGroup="News"></asp:RequiredFieldValidator></td>
</tr>
<tr align="left">
<td>
选择模板:</td>
<td>
<asp:DropDownList ID="ddlstTemplate" runat="server" DataSourceID="ObjectDataSource2"
DataTextField="NewsTemplateName" DataValueField="NewsTemplateURL">
</asp:DropDownList>
<asp:ObjectDataSource ID="ObjectDataSource2" runat="server" SelectMethod="GetAllTemplate"
TypeName="eTemplate"></asp:ObjectDataSource>
</td>
</tr>
<tr align="left">
<td>
新闻内容:</td>
<td>
<asp:Label ID="lblContent" runat="server"></asp:Label></td>
</tr>
<tr align="left">
<td>
上传图片:</td>
<td>
<asp:HyperLink ID="hlkImage" runat="server" ToolTip="点击查看" Target="_blank">上传的图片</asp:HyperLink></td>
</tr>
<tr align="left">
<td style="height: 67px">
选择栏目:</td>
<td style="height: 67px">
<asp:DropDownList ID="ddlstItem" runat="server" DataSourceID="ObjectDataSource1"
DataTextField="NewsItemName" DataValueField="NewsItemID">
</asp:DropDownList>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetAllItem"
TypeName="eNewsItem"></asp:ObjectDataSource>
</td>
</tr>
<tr align="left">
<td>
首页新闻:</td>
<td>
<asp:RadioButtonList ID="rblstShowAtHome" runat="server" RepeatDirection="Horizontal">
<asp:ListItem Value="true">是</asp:ListItem>
<asp:ListItem Selected="True" Value="false">否</asp:ListItem>
</asp:RadioButtonList></td>
</tr>
<tr align="left">
<td>
推荐新闻:</td>
<td>
<asp:RadioButtonList ID="rblstRecommend" runat="server" RepeatDirection="Horizontal">
<asp:ListItem Value="true">是</asp:ListItem>
<asp:ListItem Selected="True" Value="false">否</asp:ListItem>
</asp:RadioButtonList></td>
</tr>
<tr align="left">
<td colspan="2" style="text-align: center">
<asp:Button ID="btnConfirm" runat="server" Text="审核" ValidationGroup="News" SkinID="btnDefaultSkin" OnClick="btnConfirm_Click" />
<asp:Button ID="btnDelete" runat="server" SkinID="btnDefaultSkin" Text="删除" CausesValidation="False" OnClick="btnDelete_Click" /></td>
</tr>
</table>
</asp:Content>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -