www.pudn.com > flash-zhibo-yuanma.rar > config.aspx, change:2007-10-08,size:3228b
<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="MasterPage.master" CodeFile="config.aspx.cs" Inherits="admin_config" %> <asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1"> <table width="548" border="0" align="center" cellpadding="0" cellspacing="0"> <tbody> <tr> <td width="16"><img height="21" alt="" src="Images/Vc_boxesTopL.gif" width="16" border="0" /></td> <td width="657" valign="bottom" background="Images/Vc_boxesTopBg.jpg" class="FontTitleTop" style="width: 516px">Sp_Admin 系统配置</td> <td width="27"><img height="21" alt="" src="Images/Vc_boxesTopR.gif" width="16" border="0" /></td> </tr> <tr> <td width="16"><img height="12" alt="" src="Images/Vc_boxesL.jpg" width="16" border="0" /></td> <td style="width: 516px"></td> <td><img height="12" alt="" src="Images/Vc_boxesR.jpg" width="16" border="0" /></td> </tr> <tr> <td width="16" height="99" background="Images/Vc_boxesLBg.jpg"></td> <td style="width: 516px"> 添加服务器:<asp:TextBox ID="txtips" runat="server"></asp:TextBox> <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="确定" /><br /> <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="id" DataSourceID="SqlDataSource1"> <Columns> <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" /> <asp:BoundField DataField="id" HeaderText="id" InsertVisible="False" ReadOnly="True" SortExpression="id" /> <asp:BoundField DataField="ips" HeaderText="ips" SortExpression="ips" /> </Columns> </asp:GridView> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" DeleteCommand="DELETE FROM [Sp_SerList] WHERE [id] = @id" InsertCommand="INSERT INTO [Sp_SerList] ([ips]) VALUES (@ips)" SelectCommand="SELECT * FROM [Sp_SerList] ORDER BY [id] DESC" UpdateCommand="UPDATE [Sp_SerList] SET [ips] = @ips WHERE [id] = @id"> <DeleteParameters> <asp:Parameter Name="id" Type="Int32" /> </DeleteParameters> <UpdateParameters> <asp:Parameter Name="ips" Type="String" /> <asp:Parameter Name="id" Type="Int32" /> </UpdateParameters> <InsertParameters> <asp:Parameter Name="ips" Type="String" /> </InsertParameters> </asp:SqlDataSource> </td> <td width="27" background="Images/Vc_boxesRBg.jpg"></td> </tr> <tr> <td width="16"><img height="16" alt="" src="Images/Vc_boxesBottomL.gif" width="16" border="0" /></td> <td background="Images/Vc_boxesBottomBg.jpg" style="width: 516px"></td> <td><img height="16" alt="" src="Images/Vc_boxesBottomR.gif" width="16" border="0" /></td> </tr> </tbody> </table> </asp:Content>