private void Page_Load(object sender, System.EventArgs e) { if (!IsPostBack) { BusinessClass bc = new BusinessClass(); DataGrid1.DataSource = bc.GetData(); DataGrid1.DataBind(); } }
private void reloadData() { BusinessClass biz; biz = new BusinessClass(); DataGrid1.DataSource = biz.GetData(); DataGrid1.DataBind(); }
private void Page_Load(object sender, System.EventArgs e) { if (!IsPostBack) { try { BusinessClass bc = new BusinessClass(); DataGrid1.DataSource = bc.GetData(); DataGrid1.DataBind(); } catch(InworxException et) { Response.Redirect("Error.aspx?msg=" + Server.UrlEncode(et.Message) + " - " + Server.UrlEncode(et.StackTrace)); } } }
private void ReloadData() { BusinessClass bc = new BusinessClass(); DataGrid1.DataSource = bc.GetData(); DataGrid1.DataBind(); }
private void reloadData() { BusinessClass biz; try { biz = new BusinessClass(); DataGrid1.DataSource = biz.GetData(); DataGrid1.DataBind(); } catch(InworxException ex) { Response.Redirect("error.aspx?msg=" + Server.UrlEncode(ex.Message)); } }