What is the difference between Microsoft jQuery Unobtrusive and Microsoft Ajax - asp.net-mvc

I am working on an ASP.Net MVC Application (C# and razor).
I am wondering what is the difference between those 2 nuget packages:
Microsoft jQuery Unobtrusive
Microsoft Ajax
Thanks

Microsft jQuery Unobtrusive replaces the obsolete Microsoft Ajax.
After importing the package to your project, jquery.unobtrusive-ajax.js allows you to use the Ajax* AjaxHelpers in the Razor views.
However, many recommend against using the AjaxHelpers in favor coding these yourself with plain jQuery.
It seems in MVC6 they have removed the AjaxHelpers.
Which updates the question Is "jquery.unobtrusive-ajax.js" obsolete?

Related

Ajax ToolKits and MVC

Can I Install Ajax controls ToolKits in Asp.net Mvc project When I working in Razor!
When I work on razor there is no ant tools Like Web form instead when you select html.cs after create new project in MVC
You cannot. ASP.NET MVC does not support the Ajax toolkit because they are designed for WebForms projects. As the commentor above mentioned, there are other ways to add reusable code to an MVC application.

How to use Ajax Control Toolkit in Razor MVC 4?

How to use Ajax Slider from Ajax Control toolkit in ASP.net MVC4 Razor template application?
Ajax toolkit doesn't work with MVC because it was built for WebForms. So You have to use alternates for that purpose like "JQUERY".
You are unable to use AJAX Control Toolkit for MVC 4 because it is a set of User controls build in Web Forms and only compatible with ASP.NET Web Forms. jQuery, DevExpress, Infragistics and other toolkits are available for MVC.
Check the links here: Dev Express Tool Kit For Asp.Net MVC 4

Need MVC 3 Grid with AJAX paging/sorting with unobtrusive javascript

I'm fairly new to MVC 3 and and looking for a grid component that allows sorting and paging, but will also use progressive enhancement so provide fully AJAX based sorting and paging.
Ideally I'd like the generated markup to be very clean and customizable with minimal JS embedded on the page
Get a look at http://datatables.net/
There are various nuget packages and codeplex projects developped to easilyintegrate these with asp.net mvc such as this one: http://datatablesmvc.codeplex.com/

Using ASP.NET MVC 3 **WITHOUT** jQuery

I need to write an application in ASP.NET MVC, but for corporate reasons I can't use jQuery. I have heard that you can "turn off" jQuery and that ASP.NET controls like TextBoxFor will fall back to using Microsoft's older JS libraries. But I haven't found any detailed information on how to do this.
Anyone have experience with this approach? Any pointers?
ASP.NET MVC does not require jQuery. The MVC3 project templates include it in _Layout.cshtml because many developers prefer it. You can remove it.
It does use jQuery Validation by default, however, but you can use the Microsoft Ajax MVC2 libraries instead.
If you remove jQuery scripts, you will be unable to use the jQuery/Unobtrusive MVC 3 validation.
Use the MS scripts and corresponding validation functionality instead:
_Layout.cshtml:
"~/Scripts/MicrosoftAjax.js"
"~/Scripts/MicrosoftMvcValidation.js"
That’s all.
By the way, why cannot you use the jQuery in your project?
It's all down to the adapters that you decide to include from the default script folders. If you don't want to use Jquery include the other adapter files.

.NET MVC + Dojo (Other Framework) for mini-ERP

We are about to develop a mini-ERP web-app. We need the app to be browser agnostic with rich user interface which should be 'enterprise-ready'!. Something like the latest openERP.
We are planning on using the .NET MVC 3 and Dojo for our project.
So our major queries are:
Are there any Htmlhelpers for Dojo. Any opensource implementation where we can get some idea.
Will the app be slow if we use Dojo? In our previous project we integrated Dojo with PHP and had to make the web-app SPA (single page application). This is because on each request, the declarative markup was processed by dojo. So larger the no. of widgets, longer the processing. We had not tried the Dojo build feature then. Will that make it fast? Or do we have to go with the Single Page Application? What are the pro/cons of SPA?
Note: We are open to using any other competitive JS Framework. Bonus point if we get some ready implementation with .NET MVC (for reference).
I have developed ERP application using ASP.NET MVC 2. It is not so advanced but it gets the job done.
Here are some points concerning its implementation:
It is not SPA
For the UI I have used jQueryUI and jqGrid, which perform very well
AJAX form submission using jQuery Form Plugin
We are using ASP.NET MVC4 in our ERP project. These features are related with the architecture .
JQuery Layout
SlickGrid (a open source grid control with very rich functions and plugins)
ZTree
JQuery Dialog
WebApi (not WCF)
Dapper (not EntityFramework)
We combine many plugins working together, and one team member is familiar with CSS and DIV layout. There are some challenges if you haven't rich experience with javascript and UI layout. Finally, we have completed the project, it is amazing.

Resources