469,943 Members | 2,541 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,943 developers. It's quick & easy.

Binding values to a checkbox list control

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

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.
Jul 21 '05 #1
0 1142

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Stephen | last post: by
11 posts views Thread by Rourke Eleven | last post: by
reply views Thread by Larry Serflaten | last post: by
3 posts views Thread by cannontrodder | last post: by
reply views Thread by AleXmanFree | last post: by
3 posts views Thread by Simon Tamman | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.