Navaz

Navaz

  • NA
  • 96
  • 44.6k

search is not working

Aug 23 2013 12:19 AM
my text box search code

 public void gridsearch()
        {

            ClassSp spclass = new ClassSp();
            DataTable dtblc = new DataTable();
            dtblc = spclass.classSearch(decserch);
            gvclassreport.DataSource = dtblc;
        }

        protected void txtclassName_TextChanged(object sender, EventArgs e)
        {
            if (txtclassName.Text != string.Empty)
            {
                decserch = txtclassName.Text;
                gridsearch();

            }
            else
            {
                gridfill();
            }
        }

Answers (9)