472,143 Members | 1,575 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,143 software developers and data experts.

Dynamic usercontrol cant get values of the checkboxes

Hi all,

I have:
1. I have a place holder: phAT
2. I have a usercontrol which has just a datagrid in it.
3. I get data from the database and if get different categories.
4. I bind the datagrid with each category. I do not know how many categories will be.
5. The datagrid has a checkbox column (bound)
6. Once bound, I add the datagrid into the placeholder one by one.
1. Even though when i try to change the ID of the datagrid, it does not get changed, however, the controls within the datagrid do have the changed id. Hence, I get multiple <html> snippets with same ID.
2. Initially I was losing the placeholder upon postback. But then I came across an article that I need to rebuild the placeholder contents everytime in Page_Init. Which works fine now. THE ISSUE is that, upon reload, I lose all the checked items!!!

Please HELP!
Apr 2 '07 #1
0 973

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Frank Collins | last post: by
1 post views Thread by tascien | last post: by
reply views Thread by Axel Dahmen | last post: by
2 posts views Thread by John Ninan | last post: by
3 posts views Thread by Jack Black | last post: by
3 posts views Thread by DougS | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.