protected void Page_Load(object sender, EventArgs e) { login lg = new login(); lg.login(); order order1 = new order(); check ck = new check(); string u = ck.CheckNumber(order1.GetRequestQueryString("u", "0")); string myu = ck.CheckNumber(order1.GetRequestCookies("user_id", "")); data_conn cn = new data_conn(); DataSet ds = new DataSet(); string sql = "SELECT * FROM TB_USER WHERE userid = " + u; ds = cn.mdb_ds(sql, "user"); Label1.Text = ds.Tables["user"].Rows[0]["companyname"].ToString(); Label9.Text = ds.Tables["user"].Rows[0]["postnumber"].ToString(); Label11.Text = ds.Tables["user"].Rows[0]["address"].ToString(); Label4.Text = "<span><a href=\"/company/" + setkey(u) + "\" style='font-size:14px; font-weight:bold; color:#FF6600;' target=\"_blank\">" + ds.Tables["user"].Rows[0]["realname"].ToString() + "</a></span>"; Literal25.Text = "<a href=\"/member/pm_detail.aspx?pid=1&cid=" + u + "\" target=\"_blank\"><img src=\"/images/fcl/bot_1.jpg\" border=\"0\" style= 'margin-top: 12px;'/></a>"; if ((bool)ds.Tables["user"].Rows[0]["HeadURL"] == true) { imghead.Src = "/member/Head/" + ds.Tables["user"].Rows[0]["UserID"].ToString() + ".jpg"; } else { imghead.Src = "/member/Head/default.jpg"; } LtrStars1.Text = Star1(ds.Tables["user"].Rows[0]["star_allin"].ToString()); LtrStars2.Text = Star2(ds.Tables["user"].Rows[0]["star_user"].ToString()); try { ImageButton1.ImageUrl = "/images/get/company_tel.aspx?u=" + setkey(u); ImageButton3.ImageUrl = "/images/get/company_email.aspx?u=" + setkey(u); ImageButton4.ImageUrl = "/images/get/company_mobile.aspx?u=" + setkey(u); } catch { } AllinUser AllinUser1 = new AllinUser(); mysqldata_conn mycn = new mysqldata_conn(); sql = "SELECT uid FROM uc_friends WHERE uid = " + AllinUser1.GetUserDetail(myu)[10] + " AND friendid = " + ds.Tables["user"].Rows[0]["UCenterHomeUid"].ToString(); //Response.Write(sql); DataSet dsu = new DataSet(); dsu = mycn.mdb_ds(sql, "ufriend"); if (dsu.Tables["ufriend"].Rows.Count > 0) { ImageButton2.Visible = false; Label2.Visible = true; } }