示例#1
0
 protected void bntAdd_Click(object sender, EventArgs e)
 {
     //if (((TextBox)INVDETAILS.Rows[INVDETAILS.Rows.Count-1].FindControl("INVID")).Text != "")
     {
         INVDETAILS.DataSource = dal.AddNewRowToGridInvDetails(INVDETAILS);
         INVDETAILS.DataBind();
     }
 }
示例#2
0
 public void GetRecords()
 {
     try
     {
         dal = new DAL();
         DataSet ds;
         ds = new DataSet();
         ds = dal.GetSetINVDETAILS(Action: "GET_DATA");
         INVDETAILS.DataSource = ds;
         INVDETAILS.DataBind();
     }
     catch (Exception ex)
     {
         lblErrorMsg.Text = ex.Message.ToString();
     }
 }