9
Reply

search is not working

Navaz

Navaz

Aug 23 2013 12:19 AM
847
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)