469,326 Members | 1,193 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

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.
--------------------------------------------------------------
Issue
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 936

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 zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.