protected void FillOrderHistory(string username) { //bh = new BussinessHandler(); try { order_dt = bh.GetOrderHistory(username); OrderHistory_gridview.DataSource = order_dt; OrderHistory_gridview.DataBind(); } catch (Exception ex) { string errormessage = ex.Message; Response.Write("<script>alert('Error Getting Order history :" + errormessage + "');</script>"); } }
protected void MyButtonClick(object sender, System.EventArgs e) { try { Button btn = (Button)sender; GridViewRow selectedRow = (GridViewRow)btn.NamingContainer; int orderid = Convert.ToInt32(selectedRow.Cells[0].Text); DataTable dt = GetOrderSpecificEMI(orderid); Response.Write("<script>alert('Fetching details')</script>"); OrderSpecific_gridview.DataSource = dt; OrderSpecific_gridview.DataBind(); pnlPopup.Visible = true; ActiveEMI_gridview.DataBind(); OrderHistory_gridview.DataBind(); } catch (Exception ex) { string errormessage = ex.Message; Response.Write("<script>alert('Error Fetching Details:" + errormessage + "');</script>"); } }