Visual Studio bug: asp:UpdatePanel could not be set on property ‘ContentTemplate’

So, I ran the Secunia Online Vulnerability inspector on my work PC and noticed there were over a dozen missing patches. I ran WindowsUpdate and had to reboot.

After rebooting, I reloaded Visual Studio 2008 and my ASP.Net project that I’m working on. I noticed that the designer was unable to render on any of my pages that had an updatePanel and the error I got was:

asp:UpdatePanel could not be set on property 'ContentTemplate'
Continue reading

Share

Keeping a Session Alive

waveformIt seems like such a simple thing, I’m amazed it’s not part of Microsoft’s whole webform architecture. I would like to keep a user’s session from timing out as long as he/she is still on the web page. Just ping the server, so to speak, periodically, to let it know that this session is still being used, even if the user has gone to lunch, gotten interrupted by a phone call or coworker, etc.

I’ve tried numerous ‘solutions’ that I have googled (jQuery heartbeat plugin, other javascript based things, AJAX controls, etc), but the only one I’ve gotten to work, is also about the simplest one I could find. It’s by Thomas Kurek and posted on Code Project.

http://www.codeproject.com/KB/session/Session_Defibrillator.aspx

So far, it has kept a session alive for over 16 hours. Keeping my fingers crossed that this one will be ‘the one’.

Share