⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 moneykind.aspx

📁 课程设计了
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MoneyKind.aspx.cs" Inherits="MoneyMsg_MoneyKind" %>

<!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 runat="server">
    <title>无标题页</title>
    <link href="../style/css.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
            AutoGenerateColumns="False" BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None"
            BorderWidth="1px" CellPadding="3" CellSpacing="2" DataKeyNames="MoneyKindId"
            DataSourceID="SqlDataSource1" Width="509px">
            <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
            <Columns>
                <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
                <asp:BoundField DataField="MoneyKindId" HeaderText="MoneyKindId" InsertVisible="False"
                    ReadOnly="True" SortExpression="MoneyKindId" />
                <asp:BoundField DataField="MoneyKindS" HeaderText="MoneyKindS" SortExpression="MoneyKindS" />
            </Columns>
            <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
            <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
            <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
            <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConflictDetection="CompareAllValues"
            ConnectionString="<%$ ConnectionStrings:csmagConnectionString %>" DeleteCommand="DELETE FROM [MoneyKind] WHERE [MoneyKindId] = @original_MoneyKindId AND [MoneyKindS] = @original_MoneyKindS"
            InsertCommand="INSERT INTO [MoneyKind] ([MoneyKindS]) VALUES (@MoneyKindS)" OldValuesParameterFormatString="original_{0}"
            SelectCommand="SELECT * FROM [MoneyKind]" UpdateCommand="UPDATE [MoneyKind] SET [MoneyKindS] = @MoneyKindS WHERE [MoneyKindId] = @original_MoneyKindId AND [MoneyKindS] = @original_MoneyKindS">
            <DeleteParameters>
                <asp:Parameter Name="original_MoneyKindId" Type="Int32" />
                <asp:Parameter Name="original_MoneyKindS" Type="String" />
            </DeleteParameters>
            <UpdateParameters>
                <asp:Parameter Name="MoneyKindS" Type="String" />
                <asp:Parameter Name="original_MoneyKindId" Type="Int32" />
                <asp:Parameter Name="original_MoneyKindS" Type="String" />
            </UpdateParameters>
            <InsertParameters>
                <asp:Parameter Name="MoneyKindS" Type="String" />
            </InsertParameters>
        </asp:SqlDataSource>
        <br />
        <br />
        &nbsp;<asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False"
            BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px"
            CellPadding="3" CellSpacing="2" DataKeyNames="MoneyKindId" DataSourceID="SqlDataSource1"
            DefaultMode="Insert" Height="50px" Width="125px">
            <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
            <EditRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
            <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
            <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
            <Fields>
                <asp:BoundField DataField="MoneyKindId" HeaderText="MoneyKindId" InsertVisible="False"
                    ReadOnly="True" SortExpression="MoneyKindId" />
                <asp:BoundField DataField="MoneyKindS" HeaderText="MoneyKindS" SortExpression="MoneyKindS" />
                <asp:CommandField ShowInsertButton="True" />
            </Fields>
            <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
        </asp:DetailsView>
    
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -