毕业论文论文范文课程设计实践报告法律论文英语论文教学论文医学论文农学论文艺术论文行政论文管理论文计算机安全
您现在的位置: 毕业论文 >> 论文 >> 正文

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

更新时间:2009-9-18:  来源:毕业论文
asp.net综合类B2B市场的设计与实现 第10页
     //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="Default3.aspx.cs" Inherits="Default3" %>
<!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:1px solid #c0c0c0;
border-bottom:1px solid #c0c0c0;
border-left:1px solid #c0c0c0;
border-right:1px solid #c0c0c0;
}
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Table ID="Table1" runat="server" CssClass="biankuang">
        <asp:TableRow>
        <asp:TableCell>修改信息</asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
        <asp:TableCell>名称
            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox></asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
        <asp:TableCell>密码
            <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox></asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
        <asp:TableCell>重复
            <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox></asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
        <asp:TableCell>邮箱
            <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox></asp:TableCell>
        </asp:TableRow>
        </asp:Table>
              
        <asp:Button ID="Button1" runat="server" Text="submit" OnClick="Button1_Click" />
        <asp:Button ID="Button2" runat="server" Text="cancel" OnClick="Button2_Click" />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        &nbsp;&nbsp;&nbsp;
        <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click">more</asp:LinkButton>
        <hr />
        <asp:Panel ID="paneltotal" runat="server">
        <asp:Table ID="Table2" runat="server">
        <asp:TableRow>
        <asp:TableCell>
            <asp:TextBox ID="TextBox5" runat="server"  TextMode="MultiLine"
             Width="600px" Height="300px" ></asp:TextBox></asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
             <asp:TableCell>
                 <asp:Button ID="btn" runat="server" Text="submit"  OnClick="btn_Click" /></asp:TableCell>
        </asp:TableRow>
        </asp:Table>
        </asp:Panel>
    </div>
    </form>
</body>
</html>
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;

public partial class Default3 : System.Web.UI.Page
{
    
www.751com.cn
    {        
        string myConnString = "server=.\\SQLEXPRESS;database=151;user id=sa;password=tmdjsj";
        myConn = new SqlConnection(myConnString);
        myConn.Open();
        //comID = int.Parse(Session["comID"].ToString());
        string strSelC="select * from companylist where comID='"+1+"'";
        SqlDataAdapter myAdapter1=new SqlDataAdapter(strSelC,myConn);
        DataSet ds=new DataSet();
        myAdapter1.Fill(ds,"companylist");
        TextBox5.Text=ds.Tables["companylist"].Rows[0]["comInformation"].ToString();
        Table2.Attributes.Add("style", "display:none");
        //paneltotal.Visible = false;
        if (!Page.IsPostBack)
        {
            DataBind();
        }
    }
    public void LinkButton1_Click(object sender, EventArgs e)
    {
        Table2.Attributes.Add("style", "display: ");
        //Table2.Visible = true;
        //paneltotal.Visible = true;
       
    }
    public void Button1_Click(object sender, EventArgs e)
    {
        SqlCommand mycmd = new SqlCommand();
        mycmd.Connection = myConn;
        mycmd.CommandType = CommandType.StoredProcedure;
        mycmd.CommandText = "UpdateComUSER";
        mycmd.Parameters.Add("@comName", SqlDbType.NVarChar).Value = TextBox1.Text;
        mycmd.Parameters.Add("@comPassword", SqlDbType.NVarChar).Value = TextBox2.Text;
        mycmd.Parameters.Add("@comEmail", SqlDbType.NVarChar).Value = TextBox4.Text;
        mycmd.Parameters.Add("@comID", SqlDbType.Int).Value = comID;
        mycmd.ExecuteNonQuery();
        myConn.Close();

上一页  [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]  ... 下一页  >> 

asp.net综合类B2B市场的设计与实现 第10页下载如图片无法显示或论文不完整,请联系qq752018766
设为首页 | 联系站长 | 友情链接 | 网站地图 |

copyright©751com.cn 辣文论文网 严禁转载
如果本毕业论文网损害了您的利益或者侵犯了您的权利,请及时联系,我们一定会及时改正。