Saturday, March 24, 2012

AJAX and image Background

Hi,

I am using panel with in AJAX update panel, the panel background is using an image. So first time I run the form the panel will be displayed with the background image that I have set up, but when I click a button and partial update happen the panel background image will disappear. Can any one help me to keep the background of the panel even if partial update happens.

Place your Panel inside the UpdatePanel and that will solve your problem most likely. If that is not a solution because the panel contains other controls outside the updatepanel it contains then just wrap the the panel with a update panel and retain the current one you have. Nothing prvents you from having multiple update panels. No idea why you're experiencing the problem unless somehow the divs / spans created by the panels get mishandled or something but try the two possible workarounds listed above and see if that fixes it...

Thanks for the replay,

I have the background set up on the master page which contains the panel and inside the panel is the content place holder, The panel is setup with background image, when partial update trigger, the background image for the page that is displayed within the content place holder will disappear but for the remaining panel still contain the background image,


Hi!! put your panel inside the update panel and also the other controls. It will trigger the page. u wil get the image displayed.Wink
Thanks, I have missed some controles to be inside the update panel.

No comments:

Post a Comment