I'm not quite sure where to start with this one, so i would appreciate some ideas. I'm working on a selection page where i want to sort the data based on certain criteria (and have multiple criteria drop down lists)... Which will output a list of the objects that fall into the specified criteria (most likely into a text box... unless a better idea is suggested)
Thanks!!!
One way could be - use a GridView to display the reaults on the SelectedIndexChanged event of the GridView, for example:
string cnStr ="";//connection stringstring qry =""; //querySqlConnection con =new SqlConnection(cnStr);con.Open();DataSet ds =new DataSet();SqlDataAdapter da =new SqlDataAdapter(qry, con);da.Fill(ds);grdView.DataSource = ds;grdView.DataBind();
PS: Set AutoPostBack of DropDown to TRUE
0 comments:
Post a Comment