Navaz

Navaz

  • NA
  • 96
  • 45.1k

error

Aug 29 2013 1:05 AM
 protected void Page_Load(object sender, EventArgs e)
        {
            classfill();
        }
        public void classfill()
        {
            ClassSp spclass = new ClassSp();
            DataTable dtblclass = new DataTable();
            dtblclass = spclass.classViewAll();
            ddlclasname.DataSource = dtblclass;
            ddlclasname.DataValueField = "classId";
            ddlclasname.DataTextField = "className";
            ddlclasname.DataBind();
            ddlclasname.Items.Insert(0, "--select--");

            

        }
        public void divfill()
        {
            DivisionSp spdivision = new DivisionSp();
            DataTable dtblc = new DataTable();
            dtblc = spdivision.divisionSearch(DivSearch);
            ddldivisionname.DataSource = dtblc;
            ddldivisionname.DataValueField = "divisionId";
            ddldivisionname.DataTextField = "divisionName";
            ddldivisionname.DataBind();
            ddldivisionname.Items.Insert(0, "--select--");


        }
then


 protected void ddlclasname_SelectedIndexChanged(object sender, EventArgs e)
        {
            DivSearch = ddlclasname.SelectedValue.ToString();
            divfill();
        }

but div is not fill


Answers (3)