lsmyth1717
Programmer
Hi Everyone
I'm going to use my first <asp:CheckBoxList> control to create a list of selections which users can choose from and run a search against. In other words they are going to act as the parameters of query.
I want to store the values in the web-config and then bind to the values to the checkbox list.
Has anyone done anything like this and if so can someone show me the best way to bind this values. Should I do it using a BindData function called from the page load or is there another way i should be doing this. Thanks for any help anyone can give me.
In case anyone is wondering i can't pull the values back from the database as they are the actual names of fields as opposed to the values within a field.
e.g
Table Fields and values
u_publications u_judgements u_policy
0 0 1
1 0 1
0 1 0
I want my field names to be the values which are added to the checkbox list which is why i was thinking of storing them in the web config.
I'm going to use my first <asp:CheckBoxList> control to create a list of selections which users can choose from and run a search against. In other words they are going to act as the parameters of query.
I want to store the values in the web-config and then bind to the values to the checkbox list.
Has anyone done anything like this and if so can someone show me the best way to bind this values. Should I do it using a BindData function called from the page load or is there another way i should be doing this. Thanks for any help anyone can give me.
In case anyone is wondering i can't pull the values back from the database as they are the actual names of fields as opposed to the values within a field.
e.g
Table Fields and values
u_publications u_judgements u_policy
0 0 1
1 0 1
0 1 0
I want my field names to be the values which are added to the checkbox list which is why i was thinking of storing them in the web config.