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:


  • 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.

  • FYI, links no longer work...

  • Fixed.

  • 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!

  • @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.

  • 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' does not contain a definition for 'Calendar' and no extension method 'Calendar' accepting a first argument of type 'System.Web.Mvc.AjaxHelper' could be found (are you missing a using directive or an assembly reference?)

    Can anybody explain what reference or directive I am missing?

  • @Dallas: you should ask Stephen.

Comments have been disabled for this content.