Don't miss out Virtual Happy Hour today (April 26).

Try our conversational search powered by Generative AI!

Problem getting Ajax to work

Vote:
 

I'm trying to add the reference AjaxControlToolkit.dll but I can't get the site to work after doing this. I've read a few posts regarding Ajax problems but I cant seem to find where to start. I've looked at http://labs.episerver.com/en/Blogs/Mari-Jorgensen/Dates/112298/7/Using-Ajax-in-EPiServer-CMS-5/ but the only reference of System.Web.Extensions I've got is for 3.5 framework and doesn't work.

Is there a similar step-by-step guide to get it working?

#36246
Jan 21, 2010 12:21
Vote:
 

You also need to add a few settings to your web.config file. I would just create a new project with ASP.NET AJAX included and compare the two projects web.config files.

#36247
Jan 21, 2010 12:35
Vote:
 

I suppose it's these settings. http://www.asp.net/AJAX/documentation/live/ConfiguringASPNETAJAX.aspx I'll give it a go!

#36248
Jan 21, 2010 13:01
Vote:
 

Yep :). Also watch out in what order you add the handlers.. they get used from top to bottom. So if things don't work in the beginning, try moving the ScriptResourceHandler further up the list.

#36251
Jan 21, 2010 13:40
Vote:
 

I'll keep an eye out! I'm gonna start out by copying from another project that allready uses the function I'm going for so it shouldn't be a problem.

Thanks!

#36252
Jan 21, 2010 13:45
Vote:
 

I still havn't gotten this to work. I've added all of the additional lines in web.config from both the page I link to earlier and I've looked at several other projects. No luck.

I'm testing on the most simple page where I update time to a label but the page keeps reloading. All I get is the error message down in the corner of the browser telling me it failed to load Ajax.

#39628
May 26, 2010 9:50
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.