9
Answers

search is not working

Navaz

Navaz

11y
849
1
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)