admin/Order/Pay.aspx

(完整代码) 3KB

<%@ Page Language="C#" MasterPageFile="~/admin/adminmasterpage.master" AutoEventWireup="true" CodeFile="Pay.aspx.cs" Inherits="admin_Order_Pay" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table class="table" width="99%" border="0" align="center" cellpadding="0" cellspacing="1">
<tr  class="td_bg">
<td><asp:GridView ID="gvProductSort" EmptyDataText="搜索结果并没有此数据" runat="server" AutoGenerateColumns="False" CssClass="top" width="100%" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Horizontal" AllowPaging="True" AllowSorting="True" DataSourceID="SqlDataSource1" DataKeyNames="op_id">
            <RowStyle BorderWidth="1px" BackColor="White" />
            <FooterStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True" />
            <HeaderStyle CssClass="bg_tr" BackColor="#E4F1FA" Font-Bold="True" ForeColor="#1E5494" Font-Size="12px" />
            <EditRowStyle BackColor="#2461BF" />
            <AlternatingRowStyle BackColor="White" />     
    <Columns>
        <asp:BoundField DataField="op_id" HeaderText="ID" InsertVisible="False" ReadOnly="True"
            SortExpression="op_id" />
        <asp:BoundField DataField="op_title" HeaderText="中文名称" SortExpression="op_title" />
        <asp:BoundField DataField="op_title_en" HeaderText="英文名称" SortExpression="op_title_en" />
        <asp:BoundField DataField="op_url" HeaderText="链接地址" SortExpression="op_url" />
        <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
    </Columns>
        </asp:GridView>    
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:CONNECTIONSTRING %>"
        DeleteCommand="DELETE FROM [OrderPay] WHERE [op_id] = @op_id" InsertCommand="INSERT INTO [OrderPay] ([op_title], [op_title_en], [op_url], [op_content]) VALUES (@op_title, @op_title_en, @op_url, @op_content)"
        SelectCommand="SELECT * FROM [OrderPay] ORDER BY [op_id] DESC" UpdateCommand="UPDATE [OrderPay] SET [op_title] = @op_title, [op_title_en] = @op_title_en, [op_url] = @op_url, [op_content] = @op_content WHERE [op_id] = @op_id">
        <DeleteParameters>
            <asp:Parameter Name="op_id" Type="Int32" />
        </DeleteParameters>
        <UpdateParameters>
            <asp:Parameter Name="op_title" Type="String" />
            <asp:Parameter Name="op_title_en" Type="String" />
            <asp:Parameter Name="op_url" Type="String" />
            <asp:Parameter Name="op_content" Type="String" />
            <asp:Parameter Name="op_id" Type="Int32" />
        </UpdateParameters>
        <InsertParameters>
            <asp:Parameter Name="op_title" Type="String" />
            <asp:Parameter Name="op_title_en" Type="String" />
            <asp:Parameter Name="op_url" Type="String" />
            <asp:Parameter Name="op_content" Type="String" />
        </InsertParameters>
    </asp:SqlDataSource>
    <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="添加付款方式" />
</td>
</tr>
</table>
</asp:Content>

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。