asp.net综合类B2B市场的设计与实现 第14页

asp.net综合类B2B市场的设计与实现 第14页
   myConn.Close();
    }
    public void RadioButtonList1_SelectedChanged(object sender, EventArgs e)
    {
        if (ds.Tables.Count > 0)
        {
            if (RadioButtonList1.SelectedItem.Value == "sellnews")
            {
                if (ds.Tables["sell"].Rows.Count > 0)
                {    /*for (int i = 0; i < ds.Tables["sell"].Rows.Count; i++)
                    {
                        TableRow tr = new TableRow();
                        TableCell tc1 = new TableCell();
                        TableCell tc2 = new TableCell();
                        TableCell tc3 = new TableCell();
                        tc1.Text = ds.Tables["sell"].Rows[i]["sellcomName"].ToString();
                        tc2.Text = ds.Tables["sell"].Rows[i]["sellIndex"].ToString();
                        tc3.Text = ds.Tables["sell"].Rows[i]["sellParticular"].ToString();
                        tr.Cells.Add(tc1);
                        tr.Cells.Add(tc2);
                        tr.Cells.Add(tc3);
                        Table3.Rows.Add(tr);
                    }*/
                    //HeaderTemplate.HeaderText = "123";
                    //myDataGrid.Columns.Add(HeaderTemplate);
                    //myDataGrid.HeaderStyle.
                    myDataGrid.DataSource = ds.Tables["sell"].DefaultView;
                    myDataGrid.DataBind();
                }
                else
                {
                }
            }
            else
            {
                if (ds.Tables["buy"].Rows.Count > 0)
                {
                    /*for (int i = 0; i < ds.Tables["buy"].Rows.Count; i++)
                    {
                        TableRow tr = new TableRow();
                        TableCell tc1 = new TableCell();
                        TableCell tc2 = new TableCell();
                        TableCell tc3 = new TableCell();
                        tc1.Text = ds.Tables["buy"].Rows[i]["buycomName"].ToString();
                        tc2.Text = ds.Tables["buy"].Rows[i]["buyIndex"].ToString();
                        tc3.Text = ds.Tables["buy"].Rows[i]["buyParticular"].ToString();
                        tr.Cells.Add(tc1);
                        tr.Cells.Add(tc2);
                        tr.Cells.Add(tc3);
                        Table3.Rows.Add(tr);
                    }*/
                    myDataGrid.DataSource = ds.Tables["buy"].DefaultView;
                    myDataGrid.DataBind();
                }
                else
                {
                }
            }
        }
        else
        {
        }
    }
    public void Button1_Click(object sender, EventArgs e)
    {
        Response.Redirect("Default3.aspx");
    }
    public void Button2_Click(object sender, EventArgs e)
    {
        Session.Remove("comName");
        Response.Redirect("Default.aspx");
    }
    /*public void Button3_Click(object sender, EventArgs e)
    {
        Response.Redirect("Default4.aspx");
    }*/
    public void Button4_Click(object sender, EventArgs e)
    {
        Response.Redirect("Default5.aspx");
    }
}
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default8.aspx.cs" Inherits="Default8" %>
<!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>
    <style type="text/css">
.biankuang{
border-top:3px solid #c0c0c0;
border-bottom:3px solid #c0c0c0;
border-left:3px solid #c0c0c0;
border-right:3px solid #c0c0c0;
}
</style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Panel ID="Panel1" runat="server" Height="600px" Width="1000px">
            <asp:Table ID="Table1" runat="server">
            <asp:TableRow>
            <asp:TableCell>
                <asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine" Height="500px"
                 Width="800px" ReadOnly="true" CssClass="biankuang" Text=""></asp:TextBox></asp:TableCell>
            </asp:TableRow>
            <asp:TableRow>
            <asp:TableCell>
               <asp:TableID="Table2"runat="server"BackColor="silver"Width="800px">
                <asp:TableRow>
                <asp:TableCell>
                    <asp:Button ID="Button1" runat="server" Text="发送" />
                    <asp:Button ID="Button2" runat="server" Text="退出" />
                    <asp:Button ID="Button3" runat="server" Text="保存" />
     
                    <asp:Button ID="Button4" runat="server" Text="交易"/></asp:TableCell>
                </asp:TableRow>
                </asp:Table>
            </asp:TableCell>
            </asp:TableRow>
            <asp:TableRow>
            <asp:TableCell>
                <asp:TextBox ID="TextBox2" runat="server" Width="800px" CssClass="biankuang"></asp:TextBox>
            </asp:TableCell>
            </asp:TableRow>
            </asp:Table>
        </asp:Panel>
    </div>
    </form>
</body>
</html>
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default9.aspx.cs" Inherits="Default9" %>
<!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>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Table ID="Table1" runat="server">
        <asp:TableRow>
        <asp:TableCell>
            <asp:Label ID="Label1" runat="server" Text="商品名称"></asp:Label><asp:TextBox ID="TextBox1"
                runat="server"></asp:TextBox></asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>       
        <asp:TableCell>
            <asp:Label ID="Label2" runat="server" Text="商品数量"></asp:Label><asp:TextBox ID="TextBox2"
                runat="server"></asp:TextBox></asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
        <asp:TableCell>
            <asp:Label ID="Label3" runat="server" Text="商品单价"></asp:Label><asp:TextBox ID="TextBox3"
                runat="server"></asp:TextBox></asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
        <asp:TableCell>
            <asp:Label ID="Label4" runat="server" Text="合计金额"></asp:Label><asp:TextBox ID="TextBox4"
                runat="server"></asp:TextBox></asp:TableCell>
        </asp:TableRow>       
        </asp:Table>
        <hr />
        <asp:Button ID="Button1" runat="server" Text="退出" />
        <asp:Button ID="Button2" runat="server" Text="提交订单" />
        <hr />
        <asp:Table ID="Table2" runat="server">
        <asp:TableRow>
        <asp:TableCell>
            <asp:LinkButton ID="LinkButton1" runat="server">建设银行</asp:LinkButton>
        </asp:TableCell>

 << 上一页  [11] [12] [13] [14] [15] [16] [17] [18] [19] [20]  ... 下一页  >> 

Copyright © 2007-2012 www.chuibin.com 六维论文网 版权所有