sodakotahusker
Programmer
- Mar 15, 2001
- 601
I have a search form - which allows users to save their search criteria. If they select one of the saved choices, it will read a database table which contains the name of the page element and the value(s) which go into that element. To complicate this scenario, some of the the elements of combo boxes which allow multiple selections. I can't figure out the best way to do this - especially with the combo boxes. Can I loop through my dataset and have an inner loop which loops through the page controls to find the right one - and make the assignment in the code behind? Or must I look through the dataset and generate dynamic javascript to populate the elements. My boss said no response.write should be used (is this realistic?) so the first solution is the best. However I have been unable to example my list of controls. Page.Controls.Count = 3 whereas I have over 20 server side controls. When I look at the id 2 of them are null and one is the form element. So I am not understanding how the Page.Controls collection is set up.
I need to get this resolved soon. My whole project is due in 3 weeks and this is holding up the rest of the work. Thanks!!!!!!
I need to get this resolved soon. My whole project is due in 3 weeks and this is holding up the rest of the work. Thanks!!!!!!