Esempio n. 1
0
        protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
        {
            string categoryname = DropDownList1.SelectedItem.ToString();

            GridView1.DataSource = Business.GetitemListbyCatname(categoryname);
            GridView1.DataBind();
        }
        protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
        {
            //Get the selected item from DropDownList1
            string categoryname = DropDownList1.SelectedItem.ToString();

            //Input data into GridView2 based on the selected item from DropDownList1
            GridView2.DataSource = Business.GetitemListbyCatname(categoryname);
            GridView2.DataBind();
        }