<%@ Page Title="" Language="C#" MasterPageFile="Admin.Master" AutoEventWireup="true" CodeBehind="EditForums_ManageMenuBig.aspx.cs" Inherits="Portal.Admin.EditForums_ManageMenuBig" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div id=sm>
添加大类
</div>



<a href="forums.aspx">返回</a> <br /><br />
 
<div style=" font-family:Verdana; line-height:23px;">
<a href="EditForums_memuBig.aspx">添加大类</a>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="bigid" DataSourceID="SqlDataSource1"  Width="600px"
        EmptyDataText="There are no data records to display.">
        <Columns>
            <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
            <asp:BoundField DataField="bigid" HeaderText="ID编号" ReadOnly="True" 
                SortExpression="bigid" />
            <asp:BoundField DataField="menuname" HeaderText="大类名称" 
                SortExpression="menuname" />
            <asp:BoundField DataField="intro" HeaderText="说明" SortExpression="intro" />
            <asp:BoundField DataField="orderid" HeaderText="顺序ID" 
                SortExpression="orderid" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
        DeleteCommand="DELETE FROM [portal_forums_menubig] WHERE [bigid] = @bigid" 
        InsertCommand="INSERT INTO [portal_forums_menubig] ([menuname], [intro], [orderid]) VALUES (@menuname, @intro, @orderid)" 
 
        SelectCommand="SELECT [bigid], [menuname], [intro], [orderid] FROM [portal_forums_menubig] order by orderid asc , bigid asc " 
        UpdateCommand="UPDATE [portal_forums_menubig] SET [menuname] = @menuname, [intro] = @intro, [orderid] = @orderid WHERE [bigid] = @bigid">
        <DeleteParameters>
            <asp:Parameter Name="bigid" Type="Int32" />
        </DeleteParameters>
        <InsertParameters>
            <asp:Parameter Name="menuname" Type="String" />
            <asp:Parameter Name="intro" Type="String" />
            <asp:Parameter Name="orderid" Type="Int32" />
        </InsertParameters>
        <UpdateParameters>
            <asp:Parameter Name="menuname" Type="String" />
            <asp:Parameter Name="intro" Type="String" />
            <asp:Parameter Name="orderid" Type="Int32" />
            <asp:Parameter Name="bigid" Type="Int32" />
        </UpdateParameters>
    </asp:SqlDataSource>


 </div>
 
 
 </asp:Content>
