protected void Button2_Click(object sender, EventArgs e) { string SupplierName = TextBox1.Text.ToString(); // Session["id"] = int.Parse(TextBox1.Text.ToString()); DataSet dataSet = DataAccessForOrders.Getordersview(SupplierName); GridView1.DataSource = dataSet.Tables["Supplier"]; DataBind(); }
protected void Page_Load(object sender, EventArgs e) { try { if (!IsPostBack) { TextBox2.Visible = false; Button3.Visible = false; DropDownList1.Visible = false; Label3.Visible = false; Label4.Visible = false; Label5.Visible = false; string SupplierName = Session["sname"].ToString(); Label7.Text = "Dear Supplier " + Session["sname"].ToString() + " Send these Orders "; //TextBox1.Text = Session["sname"].ToString(); // Session["id"] = int.Parse(TextBox1.Text.ToString()); DataSet dataSet = DataAccessForOrders.Getordersview(SupplierName); GridView1.DataSource = dataSet.Tables["Supplier"]; DataBind(); // Master.HeadingMessage ="View Product Orders Update the Order Status"; } } catch { } }