I have to create a form in which the user can select fields from a listbox on which he wants the search criteria and then the controls are created according to the selection of the user from the listbox,for example if the listbox consist of fields like
1. Name
2. Age
3. Department
4. Designation
and if the user wants to have a search based on the Name
and Designation
then he will select Name
and Designation
from list box and the two text boxes will be created in the search panel with their respective lables,
And if the user wants to put the search criteria on Age
then he can replace the previously selected Name
and Designation
field with Age
and then only 1 TextBox will be created with label age in the search panel,
So what is the best possible way to achieve this requirement,please suggest me,any sort of help will be highly appreciable
Thanks in Advance