?? newsmanage.aspx
字號:
?<%@ Page Language="C#" MasterPageFile="~/GeneralUser.master" AutoEventWireup="true" EnableViewState ="false" CodeFile="newsmanage.aspx.cs" Inherits="newsmanage" Title="新聞管理" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table>
<tr>
<td colspan="4">
<asp:Image ID="Image1" runat="server" ImageUrl="~/images/mannews.png" /></td>
</tr>
<tr>
<td style="width: 100px; height: 9px;">
<asp:Label ID="Label1" runat="server" Font-Names="宋體" Font-Size="12px" Text="新聞檢索"></asp:Label></td>
<td style="width: 100px; height: 9px; font-size: 12px;">
<asp:DropDownList ID="ddlCheck" runat="server" Width="127px" DataSourceID="SqlDataSource1" DataTextField="NEWSKEY" DataValueField="NEWSKEY" Font-Size="12px">
</asp:DropDownList>
</td>
<td style="width: 100px; height: 9px; font-size: 12px;">
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:news_manageConnectionString2 %>"
SelectCommand="SELECT [NEWSKEY] FROM [t_News]"></asp:SqlDataSource>
</td>
<td style="width: 100px; height: 9px; font-size: 12px;">
<asp:Button ID="btnCheck" runat="server" Font-Names="宋體" Font-Size="12px" Text="搜索" OnClick="btnCheck_Click" /></td>
</tr>
</table>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4"
DataSourceID="SqlDataSource2" ForeColor="#333333" GridLines="None" Width="791px" Font-Size="12px" AllowPaging="True" AllowSorting="True" PageSize="5" DataKeyNames="新聞編號" OnRowCommand="GridView1_RowCommand" OnRowDeleting="GridView1_RowDeleting" OnRowDataBound="GridView1_RowDataBound">
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<Columns>
<asp:BoundField DataField="新聞編號" HeaderText="新聞編號" InsertVisible="False" ReadOnly="True"
SortExpression="新聞編號" />
<asp:BoundField DataField="新聞標題" HeaderText="新聞標題" SortExpression="新聞標題" />
<asp:BoundField DataField="所屬類別" HeaderText="所屬類別" SortExpression="所屬類別" />
<asp:BoundField DataField="發布時間" HeaderText="發布時間" SortExpression="發布時間" />
<asp:BoundField DataField="新聞來源" HeaderText="新聞來源" SortExpression="新聞來源" />
<asp:BoundField DataField="用戶名稱" HeaderText="用戶名稱" SortExpression="用戶名稱" />
<asp:BoundField DataField="新聞關鍵字" HeaderText="新聞關鍵字" SortExpression="新聞關鍵字" />
<asp:ButtonField CommandName="del" Text="刪除" />
</Columns>
<RowStyle BackColor="#EFF3FB" Height="25px" />
<EditRowStyle BackColor="#2461BF" />
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" Height="30px" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:news_manageConnectionString3 %>"
SelectCommand="SELECT * FROM [myviewnews] WHERE ([新聞關鍵字] = @新聞關鍵字2)">
<SelectParameters>
<asp:ControlParameter ControlID="ddlCheck" Name="新聞關鍵字2" PropertyName="SelectedValue"
Type="String" />
</SelectParameters>
</asp:SqlDataSource>
</asp:Content>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -