ASP.NET MVC and Ajax Management Toolkit

One of the things I love about the "old skool" (web forms) encoding is the AJAX Control Toolkit.

I saw video 14 on Microsoft Storefront , Rob Konye using the TextboxWatermark control .

When I downloaded the code , I couldn't find any reference to the Watermark control or any other control from the toolbox, and I couldn't get it to work.

So my question is, does the AJAX Control Toolkit even work in the MVC / AJAX / JQuery type world without a viewstate. What do you use for "simple" controls like calendar and watermarks?

+1


source to share


3 answers


jQuery UI has a calendar and other UI components. Also check out the huge number of jQuery plugins .



+8


source


I did some research on this recently and I found that the AJAX Control Toolkit is not easy to use in the "JavaScript" style that you want to use for ASP.NET MVC. In fact, this is real pain. Here are two examples:

Example 1 - Popup Calendar

Example 2 - Auto-complete a text box



Nothing is easy.

You can provide your pages with MVC code and use the AJAX Control Toolkit just like in regular ASP.NET, but that really breaks the whole idea of ​​MVC, so I would not recommend it.

My suggestion would be to follow Fredrik Kalseth's advice and use jQuery UI or one of the many plugins. Telerik also has some good Open Source MVC Controls that are jQuery based.

+2


source


Most of the AJAX Control Toolkit is available in JavaScript with MVC support from the MS AJAX CDN . They can also be used using jquery plugin syntax.

0


source







All Articles