コード例 #1
0
 private void Page_Load(object sender, System.EventArgs e)
 {
     if (!IsPostBack)
     {
         BusinessClass bc = new BusinessClass();
         DataGrid1.DataSource = bc.GetData();
         DataGrid1.DataBind();
     }
 }
コード例 #2
0
 private void reloadData()
 {
     BusinessClass biz;
     biz = new BusinessClass();
     DataGrid1.DataSource = biz.GetData();
     DataGrid1.DataBind();
 }
コード例 #3
0
 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));
         }
     }
 }
コード例 #4
0
 private void ReloadData()
 {
     BusinessClass bc = new BusinessClass();
     DataGrid1.DataSource = bc.GetData();
     DataGrid1.DataBind();
 }
コード例 #5
0
 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));
     }
 }