I need to use few of the ajax control toolkit in asp.net mvc say, Validator CallOut,ModalPopUp.
and even i need to put a gridview in an update panel? can anybody give any valuable link so that i can look into it?
As you might be knowing, Ajax is a shorthand for Asynchronous JavaScript and XML. The MVC Framework contains built-in support for unobtrusive Ajax. You can use the helper methods to define your Ajax features without adding a code throughout all the views. This feature in MVC is based on the jQuery features.
AJAX allows web pages to be updated asynchronously by exchanging small amounts of data with the server behind the scenes. This means that it is possible to update parts of a web page, without reloading the whole page.
If you want to have AJAX functionality with ASP.NET MVC I suggest you do that with JQuery (the Javascript framework officially supported by Microsoft and shipping with VS 2010). UpdatePanel was supported in ASP.NET, it is not in ASP.NET MVC.
See a tutorial on how to build some AJAX functionality with ASP.NET MVC here and here.
I don't think you'd want to put an update panel and a gridview in an asp.net mvc application.
I don't know what you're trying to do, or why you picked asp.net mvc, but it sounds like you just need to stick to asp.net if you want to do those kind of things. MVC works very differently than classic webforms.
Also keep in mind that the AJAX framework that Microsoft bolted on to ASP.Net webforms requires a full viewstate postback, so that kills one of the benefits of the MVC framework, which is to not require viewstate for control persistence.
ASP.Net MVC has no concept of controls, the standard Web Form controls do not work with MVC.
Why are you trying to integrate WebForm controls in MVC?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With