www.pudn.com > flash-zhibo-yuanma.rar > config_game.aspx, change:2007-10-07,size:1831b


<%@ Page Language="C#" MasterPageFile="~/admin/MasterPage.master" AutoEventWireup="true" CodeFile="config_game.aspx.cs" Inherits="admin_config_game" %> 
 
<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1"> 
    此数据非常重要,请不要随意修改<br /> 
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="id" 
        DataSourceID="SqlDataSource1"> 
        <Columns> 
            <asp:CommandField ShowEditButton="True" /> 
            <asp:BoundField DataField="id" HeaderText="id" InsertVisible="False" ReadOnly="True" 
                SortExpression="id" /> 
            <asp:BoundField DataField="gid" HeaderText="gid" SortExpression="gid" /> 
            <asp:BoundField DataField="name" HeaderText="name" SortExpression="name" /> 
        </Columns> 
    </asp:GridView> 
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
        DeleteCommand="DELETE FROM [Sp_game_config] WHERE [id] = @id" InsertCommand="INSERT INTO [Sp_game_config] ([gid], [name]) VALUES (@gid, @name)" 
        SelectCommand="SELECT * FROM [Sp_game_config]" UpdateCommand="UPDATE [Sp_game_config] SET [gid] = @gid, [name] = @name WHERE [id] = @id"> 
        <DeleteParameters> 
            <asp:Parameter Name="id" Type="Int32" /> 
        </DeleteParameters> 
        <UpdateParameters> 
            <asp:Parameter Name="gid" Type="Int32" /> 
            <asp:Parameter Name="name" Type="String" /> 
            <asp:Parameter Name="id" Type="Int32" /> 
        </UpdateParameters> 
        <InsertParameters> 
            <asp:Parameter Name="gid" Type="Int32" /> 
            <asp:Parameter Name="name" Type="String" /> 
        </InsertParameters> 
    </asp:SqlDataSource> 
</asp:Content>