string strsql=string.empty; strsql="select * from table2 where id1=@dropdownvalue1"; //write code for executing a query cmd.parameter.addwithvalue(@dropdownvalue1,dropdownlistvalue1); //write code for filling dataset here if(ds.Tables[0].rows.count>0) { //bound gridview here }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)