Esempio n. 1
0
 protected void grdInfo_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
 {
     if (txtCode.Text != "" || txtName.Text != "")
     {
         code               = ViewState["code"].ToString();
         name               = ViewState["name"].ToString();
         nimsal             = ViewState["nimsal"].ToString();
         dt                 = clsB.Show_Class_List_ByTerm(nimsal, Convert.ToInt32(code), name);
         grdInfo.DataSource = dt;
     }
 }