protected void Page_Load(object sender, EventArgs e) { string cid = Request.QueryString["order_no"]; bl tabsho = new bl(); GridView1.DataSource = tabsho.showgrid(cid); GridView1.DataBind(); GridView1.Enabled = true; GridView1.Visible = true; }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string ordnohyp = string.Empty; ordnohyp = Request.QueryString["Order_No"]; bl SHWGRID = new bl(); GridView2.DataSource = SHWGRID.showgrid(ordnohyp); GridView2.DataBind(); GridView2.Enabled = true; GridView2.Visible = true; } }
protected void GridView3_RowCommand1(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "ProdBtn") { int index = Convert.ToInt32(e.CommandArgument); GridViewRow row = GridView3.Rows[index]; HyperLink hl = (HyperLink)row.FindControl("HyperLink1"); string ordno = hl.Text; // int n = hl.TabIndex; // TableCell sitenamecell = row.Cells[n]; // string orderno = sitenamecell.Text; bl SHWGRID = new bl(); GridView2.DataSource = SHWGRID.showgrid(ordno); GridView2.DataBind(); GridView2.Enabled = true; GridView2.Visible = true; ScriptManager.RegisterStartupScript(Page, this.GetType(), "Key", "<script>MakeStaticHeader('" + SHWGRID.showgrid(ordno) + "', 400, 950 , 40 ,true); </script>", false); } }