예제 #1
0
        protected void ddl_Sort_SelectedIndexChanged(object sender, EventArgs e)
        {
            string order = ddl_Sort.SelectedValue;

            if (order == "1")
            {
                GridView1.DataSource = bookstorebo.sortByAlphabet();
                GridView1.DataBind();
            }
            else if (order == "2")
            {
                GridView1.DataSource = bookstorebo.sortByPriceLH();
                GridView1.DataBind();
            }
            else
            {
                GridView1.DataSource = bookstorebo.sortByPriceHL();
                GridView1.DataBind();
            }
        }