I'm currently doing a lot of ASP.NET development inside MOSS 2007. On this current project we've been doing the most of our RAD outside of SharePoint and then porting our ASP.NET application inside a MOSS instance for integration. Needless to say, like so many developers working with MOSS, I've had an interesting time troubleshooting a litany of errors that seem to come up working inside this new framework.
Today's save comes from Mike Amerlaan who's figured out a fairly critical hint that's needed to get Update Panel's to work inside a MOSS site.
Prior to discovering Mike's fix I would be able to post back (inside an update panel) ONCE after which all postback's on the page became non functional.
spOriginalFormAction = document.forms.action; _spSuppressFormOnSubmitWrapper=true;
You can of course do this by using either the ScriptManager or the Page.ClientScript.RegisterStartupScript. I'm pretty sure you'll be able to figure the rest out.
Besides that you pretty much do what you would expect to do to get UpdatePanel's working inside MOSS.
- Install the Ajax extensions on the host machine
- Migrate the web.config settings that tee up all the ajax controls/http handlers/http modules
- Add a
tag to each page (or master page) that you want to use it in.
- Add you update panels around some postback event.