Visibility, server-side events and updates

May 13, 2009 at 5:24 AM

Hi there,

Does anyone have an example implementation of the V4.0 control using an updatepanel and server-side events?

What I'm trying to do is only display the google map if some entries are found in my database. A timer is checking the database every 30 seconds. The control is sitting within an updatepanel.

I have been playing around with setting the visible property server side of both the googlemap control and a div but these both cause problems.

I had a look at the InTabPanel example but am not sure how I could call the checkresize() function server-side.

Maybe the best option would be to add a the control to a placeholder but I saw in an earlier post a user having problems with this in version 4.0.

Also, what's the best way to maintain state through postbacks? I have a second timer on my page checking the database for new entries every 30 seconds and updating the googlemap control with new markers. The examples I saw for maintaining persistance all seem to be triggered client-side. 

Any help would be much appreciated.