Click here to Skip to main content
15,888,461 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have prepare simple user control containing gridview. I am loading this user control on asp.net page dynamically. Upto this it works fine. But when i clicked on link button then user control is disappears from page and no post back event fires.
Can any one knows how to retain dynamically loaded user control on page.

Thanks
Posted

1 solution

You need to recreate your dynamic control on ever postback or it will disappear. You need to recreate it BEFORE page_load or it won't have viewstate. It's basically a waste of time to try to make this work without major headache
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900