MSMVPS.COM
The Ultimate Destination for Blogs by Current and Former Microsoft Most Valuable Professionals.

AJAX Control Toolkit - CalendarExtender going postback?

Brian H. Madsen - .Net Powered by Caffeine

Feeds

Over the weekend I've been working on validation for a form i'm working on. The form is initially not that complex, yet it's proving to be a hassle.

On the form (this is a sharepoint 2007 form btw), i have two calendarextender controls, both with their validation controls attached (required, range and regularexpression validators).

The form also includes a PeopleEditor SharePoint control (again, with its own validation controls).

The odd behavior is this - the second caledarextender works a treat - no problems there, but the first extender fires off a postback. I'm stumped as to why it's behaving like this as it certainly shouldn't be firing off a full page postback.

The form also contains a updatepanel, but neither of the calendarextender controls are featured in there (eg. no triggers associated with it) and it's used to provide some vital feedback to the user from other parts of the form.

I'm almost out of ideas on this one as it didn't do this to start with, but has suddenly taken a shine to doing it..

stumped...


Posted Apr 07 2008, 07:54 AM by Brian Madsen
Filed under:

Comments

Alessio wrote re: AJAX Control Toolkit - CalendarExtender going postback?
on 04-08-2008 5:33

I'had encontered similar error, my WebApp is nested into WebPart Page on Sharepoint 2007. BeckEnd Server (where aplication is deployed), is accessibile from local URL or Alias, when i try to access page through local URL all work fine, when i try to access through Alias click on calendar extender PostBack Events it's fired, and pop up is not visible.

Brian Madsen wrote re: AJAX Control Toolkit - CalendarExtender going postback?
on 04-08-2008 17:44

ah - now THAT does indeed sound familiar to me as well.

questions time:

1) have you configured MOSS to have AJAX enabled? (here's a good read: sharepoint.microsoft.com/.../Post.aspx)

2) have you added a ScriptManager to your masterpage? I believe you have to do this as well, but am a bit blank on that aspect as i can't recall if i did that when i worked with a WebPage WebPart some time back.

You could also install WSS and MOSS SP1, which should help with most of the problems (beware of search/advanced search with SP1 - some problems can/may occur), yet you still have to configure MOSS for AJAX manually.



Copyright © is the original authors. Blog site is an independent site not sponsored by Microsoft. The Yoda blog server and the Brianna SQL server would like to thank www.ownwebnow.com and www.exchangedefender.com. They wouldn't be here and broadcasting without the generosity of Vlad Mazek and his companies.

Powered by Community Server (Commercial Edition), by Telligent Systems