• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 102
  • Last Modified:

ASP.net stop dynamically added controls dissapering on postback

Hi

I add several controls to an ASP.net panel dynamically. Is there a way to stop them disappearing on postback?
0
Murray Brown
Asked:
Murray Brown
1 Solution
 
Kyle AbrahamsSenior .Net DeveloperCommented:
If you ajax the call they should remain on the page.  

Also you can follow this:
http://www.aspsnippets.com/Articles/ASPNet-Persist-Dynamic-Controls-Dynamic-Controls-disappear-after-PostBack-in-ASPNet.aspx

If you  can add the controls in pre-init, it should maintain the state of the data as well.
0
 
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
thanks for the help
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now