basic search using user control
-
Dear all, i am facing a problem in searching by using a user control with three conditons they are Selecting the criteria, Selecting the State, Selecting the City in each and every page i want to place the user control. i want to search the criteria based upon the state and city and display the content in a grid. please help me in this regard Thanks and Regards
sai krishna
-
Dear all, i am facing a problem in searching by using a user control with three conditons they are Selecting the criteria, Selecting the State, Selecting the City in each and every page i want to place the user control. i want to search the criteria based upon the state and city and display the content in a grid. please help me in this regard Thanks and Regards
sai krishna
-
Hi sai, Please post more details of your issue. What is the issue u r facing any error messages and above all what exactly you are trying to do. Thank you Laddie
Hi Laddie, My problem is i am having two dropdownlists of selecting the criteria ,select a state and the other one is city. if i select the criteria like video and state like Newjersey it should display the videos belong to Newyork State and if i enter the city also then search should based upon all the conditions. Hope u understand if any misspelt please send me reply thanks and regards
sai krishna
-
Hi Laddie, My problem is i am having two dropdownlists of selecting the criteria ,select a state and the other one is city. if i select the criteria like video and state like Newjersey it should display the videos belong to Newyork State and if i enter the city also then search should based upon all the conditions. Hope u understand if any misspelt please send me reply thanks and regards
sai krishna
Let us start from the assumption that the data which need to be filtered is there in a data table named myDataTable. Now DataView dataView = new DataView(myDataTable); dataView.RowFilter = "Type ="+DropDownList1.SelectedText+" City="+DropDownLlist2.SelectedText; DataGridView1.DataSource = dataView; DataGridView1.DataBind(); Let me know if it helps. Laddie
-
Let us start from the assumption that the data which need to be filtered is there in a data table named myDataTable. Now DataView dataView = new DataView(myDataTable); dataView.RowFilter = "Type ="+DropDownList1.SelectedText+" City="+DropDownLlist2.SelectedText; DataGridView1.DataSource = dataView; DataGridView1.DataBind(); Let me know if it helps. Laddie
-
Let us start from the assumption that the data which need to be filtered is there in a data table named myDataTable. Now DataView dataView = new DataView(myDataTable); dataView.RowFilter = "Type ="+DropDownList1.SelectedText+" City="+DropDownLlist2.SelectedText; DataGridView1.DataSource = dataView; DataGridView1.DataBind(); Let me know if it helps. Laddie
Thanks laddie, For ur concern. but i am fetching the data from database not using any datatable i am simply fetching the count of the state avialable or not is it right procedure or not. or else i can explain it more breifly like criteria - dropdownlist state - dropdownlist city - text i'll select criteria first and then state, if i want to know city wise then i enter city. these are the conditions so please help me thanks and regards
sai krishna