public void Getdata() { try { GridInboxdetails.DataSource = Cls_EmailMaster.ShowInboxdetails(Convert.ToInt32(Session["MemberId"])); GridInboxdetails.DataBind(); lblMsg.Text = ""; } catch (Exception ex) { lblMsg.Text = ex.Message; } }
protected void Page_Load(object sender, EventArgs e) { try { DataSet ds = Cls_EmailMaster.ShowEmailDetailsidwiseOutbox(Convert.ToInt32(Request["id"])); if (ds.Tables[0].Rows.Count != 0) { GridInboxdetails.DataSource = ds.Tables[0]; GridInboxdetails.DataBind(); } } catch (Exception ex) { lblMsg.Text = ex.Message; } }