public void loadCate() { Page.Title = "NET SHOPPING"; HtmlMeta myMeta = new HtmlMeta(); myMeta.Name = "Keywords"; myMeta.Content = "NET SHOPPING"; this.Header.Controls.Add(myMeta); HtmlMeta myMeta1 = new HtmlMeta(); myMeta1.Name = "Description"; myMeta1.Content = "NET SHOPPING"; this.Header.Controls.Add(myMeta1); HtmlMeta myMeta2 = new HtmlMeta(); myMeta2.Name = "Author"; myMeta2.Content = "NO.1 group"; this.Header.Controls.Add(myMeta2); BLL.fathercate my_f = new BLL.fathercate(); DataSet ds_f = my_f.dataset(); Repeater1.DataSource = ds_f.Tables[0]; Repeater1.DataBind(); }
public void bing() { BLL.fathercate myb = new BLL.fathercate(); DataSet ds = myb.dataset(); GridView1.DataSource = ds.Tables[0]; GridView1.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { BLL.fathercate myb = new BLL.fathercate(); DataSet ds = myb.dataset(); fathername.DataSource = ds.Tables[0]; fathername.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { BLL.fathercate my_f = new BLL.fathercate(); DataSet ds_f = my_f.dataset(); Repeater1.DataSource = ds_f.Tables[0]; Repeater1.DataBind(); s_cateid(); sbing(); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { bing(); BLL.fathercate f_bll = new BLL.fathercate(); DataSet ds = f_bll.dataset(); Drop_f.DataSource = ds.Tables[0]; Drop_f.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { BLL.fathercate my_f = new BLL.fathercate(); DataSet ds_f = my_f.dataset(); Repeater1.DataSource = ds_f.Tables[0]; Repeater1.DataBind(); uid.Text = Request.QueryString["uid"].ToString(); int u_id = Convert.ToInt32(uid.Text); BLL.product prob = new BLL.product(); SqlDataReader dr_pro = prob.selectupdate(u_id); dr_pro.Read(); market.Text = Math.Round(Convert.ToDecimal(dr_pro["_market_price"].ToString()), 2).ToString(); local.Text = Math.Round(Convert.ToDecimal(dr_pro["_local_price"].ToString()), 2).ToString(); image_id.Text = dr_pro["_imageid"].ToString(); title_l.Text = dr_pro["_product_name"].ToString(); content_s.Text = dr_pro["_describe"].ToString(); int cate_id = Convert.ToInt32(dr_pro["_cateid"].ToString()); catename(cate_id); dr_pro.Close(); BLL.proimage b_image = new BLL.proimage(); DataSet ds_image = b_image.select_sizeid(image_id.Text); DataList1.DataSource = ds_image.Tables[0]; DataList1.DataBind(); Image_1.ImageUrl = Convert.ToString(ds_image.Tables[0].Rows[0]["_imageurl"]); im_url = Image_1.ImageUrl; img_url.Text = im_url; d_color.Text = Convert.ToString(ds_image.Tables[0].Rows[0]["_color"]); if (ds_image.Tables[0].Rows[0]["_sizeid"] != null) { string size_id = Convert.ToString(ds_image.Tables[0].Rows[0]["_sizeid"]); sizeid.Text = size_id; siz(sizeid.Text); } } }