Tales from the Evil Empire

Bertrand Le Roy's blog


Bertrand Le Roy

BoudinFatal's Gamercard

Tales from the Evil Empire - Blogged

Blogs I read

My other stuff


Using the Ajax Control Toolkit in ASP.NET MVC

Stephen Walther has a pretty cool post on using the new file-only version of the Ajax Control Toolkit from an MVC application:


UPDATE: the problem with Stephen is that he writes quite fast. So pretty much in the time it took me to link to his first post, he wrote a second one, this time on using the AutoComplete behavior:



xxXd said:

It is overwhelming. The way he produces tips as if he were a balloon peddler. Need a balloon, here you go. 1, 2, ... 37. Even more overwhelming/amazing, people never get tired.

One winner up, a million losers down.

# August 26, 2008 4:36 PM

bmains said:

FYI, links no longer work...

# August 3, 2009 3:57 PM

Bertrand Le Roy said:


# August 3, 2009 4:16 PM

BrianPopovec said:

I am still trying to solve the riddle of where to put the jQuery calls to AjaxControlToolkit for rounding corners of Panels.

When converting my site to MVC, I cannot get the panels to display rounded corners.

Do you put the jQuery in the controller? or the view.

I have tried using a separate project referencing the scripts and then initializing that as a component in the main site and the corners still display as square, not rounded.

When in Web Forms, all worked perfectly!

# March 25, 2011 12:48 AM

Bertrand Le Roy said:

@Brian: just use CSS for that. Most browsers support it nowadays, and those antiquated that don't, will just see square corners. That's better than adding a lot of script and making your life more difficult than it needs to be.

# March 25, 2011 1:07 AM

DallasSteve said:

I read Stephen Walther's article, but I can't get the toolkit to work.  I've downloaded the control kit and tried to follow his instructions for setting up the control on a View.  However, when I run the page I get this error:

CS1061: 'System.Web.Mvc.AjaxHelper<dynamic>' does not contain a definition for 'Calendar' and no extension method 'Calendar' accepting a first argument of type 'System.Web.Mvc.AjaxHelper<dynamic>' could be found (are you missing a using directive or an assembly reference?)

Can anybody explain what reference or directive I am missing?

# April 29, 2012 12:44 AM

Bertrand Le Roy said:

@Dallas: you should ask Stephen.

# May 1, 2012 9:50 PM