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

📄 cst_orders_selecte.aspx

📁 小型的一个简单的系统开发的实现了简---添加--删除--修改---(vs2005和SQl2005)用到了一些JS脚本
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CST_orders_selecte.aspx.cs" Inherits="Admin_CST_Orders_selecte" %>

<!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>
<script language="javascript" type="text/javascript">
// <!CDATA[

function TABLE1_onclick() {

}

function ShowSelect(textId,dllID)
{
   document.getElementById(textId).value = document.getElementById(dllID).options[document.getElementById(dllID).selectedIndex].value;
}

// ]]>
</script>
</head>
<body style="background-color: #dee5ef">
    <form id="form1" runat="server">
    <div style="position:absolute;"><table border="0" align="center" style="width: 720px; height: 117px">
  <tr>
    <td style="width: 587px; height: 0px; position: static;">
<table width="800" height="26" border="0">
  <tr>
    <td style="height: 23px; width: 117px;">
        &nbsp;<asp:Label ID="Label1" runat="server" Text="定单编号" Width="64px" Height="20px"></asp:Label></td><td style="width: 236px; height: 23px;">
        </td><td style="height: 23px; width: 62px;">&nbsp;
        <asp:DropDownList ID="ddlOrderid" runat="server" style="position:absolute;border:1pt solid #c1c1c1;overflow:hidden;clip:rect(0px 160px 21px 70px); left: 79px; top: 5px;" Width="86px" Height="21px" onChange="ShowSelect('textOrderid','ddlOrderid')">
        </asp:DropDownList>
        <asp:TextBox ID="textOrderid" runat="server" Height="17px" Style="border-top: #c1c1c1 1pt solid;
                left: 78px; border-left: #c1c1c1 1pt solid; border-bottom: #c1c1c1 1pt solid;
                position: absolute; top: 5px" Width="67px"></asp:TextBox>
                
        <asp:Label ID="Label2" runat="server" Text="商品编号" Width="70px" Height="20px"></asp:Label></td><td style="height: 23px; width: 236px;">&nbsp;  
            &nbsp;&nbsp;
            <asp:TextBox ID="textitemid" runat="server" Height="17px" Style="border-top: #c1c1c1 1pt solid;
                left: 247px; border-left: #c1c1c1 1pt solid; border-bottom: #c1c1c1 1pt solid;
                position: absolute; top: 5px" Width="67px"></asp:TextBox>
            <asp:DropDownList ID="ddlitemid" runat="server" style="position:absolute;border:1pt solid #c1c1c1;overflow:hidden;clip:rect(0px 160px 21px 70px); left: 248px; top: 5px;" Width="86px" Height="21px" onClick="ShowSelect('textitemid','ddlitemid')">
            </asp:DropDownList>
        </td><td style="height: 23px; width: 77px;">&nbsp;<asp:Label ID="Label3" runat="server" Height="20px" Style="vertical-align: middle;
            text-align: center" Text="日期" Width="70px"></asp:Label></td><td style="height: 23px; width: 10px;" align="center">
                <asp:TextBox ID="TextBox2" runat="server" Width="68px"></asp:TextBox>&nbsp;</td><td style="height: 23px; width: 7px;">到&nbsp;</td><td style="height: 23px;width:10px" align="center">
                <asp:TextBox ID="TextBox3" runat="server" Style="vertical-align: middle" Width="62px"></asp:TextBox>&nbsp;</td><td style="height: 23px">&nbsp;<asp:Button ID="Button2" runat="server" Text="查询" /></td><td style="height: 23px">&nbsp;<asp:Button ID="Button3" runat="server" Text="导入XMl" OnClick="Button3_Click" Height="25px" Width="74px" /></td><td style="height: 23px">&nbsp;<asp:Button ID="Button5" runat="server" Text="导出XML" OnClick="Button5_Click" Height="24px" Width="74px" /></td>
 
  </tr>
</table>
    </td>
  </tr>
  <tr>
    <td style="width: 587px; height: 20px"><asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Height="1px"
    
            OnRowDeleting="GridView1_RowDeleting" Width="767px" AllowPaging="True" CellPadding="3" CellSpacing="1" DataKeyNames="order_id" OnRowEditing="GridView1_RowEditing" OnPageIndexChanging="GridView1_PageIndexChanging" PageSize="5" BackColor="White" BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" GridLines="None">
            <PagerSettings FirstPageText="" LastPageText="" mode="NextPreviousFirstLast" NextPageText="" PreviousPageText="上一页"/>
            <Columns>
                <asp:BoundField DataField="order_id" HeaderText="定单编号" />
                <asp:BoundField DataField="Items_name" HeaderText="商品名称" />
                <asp:BoundField DataField="name" HeaderText="客户名称" />
                <asp:BoundField DataField="quantity" HeaderText="数量" />
                <asp:BoundField DataField="base_price" HeaderText="价格" />
                <asp:BoundField DataField="order_date" HeaderText="日期" />
                <asp:CommandField FooterText="编辑" HeaderText="操作" ShowEditButton="True" />
                <asp:CommandField CancelText="" InsertText="" NewText="" SelectText="" ShowDeleteButton="True"
                    UpdateText="" FooterText="删除" HeaderText="操作" />
            </Columns>
        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
        <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
        <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
        </asp:GridView>
        &nbsp;
        
        </td>
  </tr>
  <tr>
    <td style="width: 587px; height: 34px; vertical-align: middle; text-align: center;" align="center">&nbsp;<asp:Button ID="Button4" runat="server" OnClick="Button4_Click" Text="添加" />
        <asp:Button ID="Button1" runat="server" Height="23px" OnClick="Button1_Click1" Text="刷新"
            Width="38px" /></td>
  </tr>
</table>
        &nbsp;</div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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