How to preserve the controls in the Table

1 view
Skip to first unread message

.NetIndia

unread,
Oct 20, 2005, 5:19:34 AM10/20/05
to dotNetIndia
Hi group
           I am having a table control(runat=server) in my form, and at runtime I am creating checkboxes and adding them to that table. I am doing some operations at client side. While the page is posting back all the checkbox controls what i created are vanished, I need to maintain the controls as well as the checked state (like normal ASP.NET server controls). I tried adding viewstate to the control which created at runtime, but it is not working.
 
Could you people suggest something regarding this

Thanx & Regards

Sreetharan S.T
 


--
Regards,
.NetIndia Group,
"There is no delight in owning anything unshared."
"A book lying idle on a shelf is wasted ammunition. Like money, books must be kept in constant circulation. Lend and borrow to the maximum -- of both books and money! But especially books, for books represent infinitely more than money. A book is not only a friend, it makes friends for you. When you have possessed a book with mind and spirit, you are enriched. But when you pass it on you are enriched threefold."

Blog:http://dotnetindia.blogspot.com/

Raja Prakash

unread,
Oct 20, 2005, 5:56:36 AM10/20/05
to Techdot...@googlegroups.com
hey...
 
                 you can do it by just saving those checkbox id and state in viewstate and in pageload you have to recreate it... else you have to go for datagrid because table doesn't have viewstate. 
 
byee..
raj...

 
Reply all
Reply to author
Forward
0 new messages