<%@ page language="C#" autoeventwireup="true" inherits="admin_news_helpclass, s1.chapk.com" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title></title>
    <link href="../css/table.css" rel="stylesheet"type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div class="my_alt">
    
    <strong><span id="Span1" class="span1style">[热门搜索]</span></strong><span class="span2style"></span>&nbsp;&nbsp;
    

    </div>
        <asp:GridView ID="GridView1" runat="server" HorizontalAlign="Center" 
        Width="100%" AutoGenerateColumns="False" 
        OnRowCreated="GridView1_RowCreated" OnRowEditing="GridView1_RowEditing" 
        BorderWidth="1px" CellPadding="0" CellSpacing="1" 
        OnRowCancelingEdit="GridView1_RowCancelingEdit" 
        OnRowUpdating="GridView1_RowUpdating">
            <RowStyle Height="25px" />
            <HeaderStyle HorizontalAlign="Center" />
            <Columns>
                <asp:TemplateField HeaderText="名称">
                    <EditItemTemplate>
                        <asp:TextBox ID="mc" runat="server" Text='<%# Eval("title") %>'></asp:TextBox>
                        <asp:Label ID="inf_Id" runat="server" Text='<%# Eval("id") %>' Visible="False"></asp:Label>
                    </EditItemTemplate>
                    <ItemTemplate>
                    <asp:CheckBox ID="gcheck" runat="server" />
                        &nbsp;<asp:Label ID="Label1" runat="server" Text='<%# Eval("title") %>'></asp:Label>
                        <asp:Label ID="inf_Id" runat="server" Text='<%# Eval("id") %>' Visible="False"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="操作">
                    <EditItemTemplate>
                        <asp:Button ID="Button1" runat="server" CommandName="update" Text="更新" />
                        <asp:Button ID="Button2" runat="server" CommandName="cancel" Text="取消" />
                    </EditItemTemplate>
                    <ItemTemplate>
                        
                        <asp:Button ID="Button3" runat="server" Text="修改" CommandName="edit" /> 
                        
                    </ItemTemplate>
                    <HeaderTemplate>
                        操作
                    </HeaderTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                    <HeaderStyle Width="18%" />
                </asp:TemplateField>
            </Columns>
            <PagerSettings FirstPageText="&amp;gt;&amp;gt;" />
        </asp:GridView>
        <div>
        <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click"  OnClientClick="{if(confirm('确认删除所选内容吗!')){return true;}return false;}">删除所选</asp:LinkButton>
            &nbsp;&nbsp; 名称：<asp:TextBox ID="s_mc" runat="server" Width="189px"></asp:TextBox>
            <asp:Button ID="Button4" runat="server" OnClick="Button4_Click" Text="添加" /></div>
    </form>
</body>
</html>
