There’s also the Request.IsAjaxRequest
if you’re using a later version of MVC. I don’t have version 1 anymore so I can’t say if it’s in version 1.
If you need this check in Global.asax.cs try this:
new HttpRequestWrapper(Request).IsAjaxRequest()
More Related Contents:
- include antiforgerytoken in ajax post ASP.NET MVC
- Progress bar for long running server calls in ASP.Net MVC [closed]
- Can an ASP.NET MVC controller return an Image?
- Biggest advantage to using ASP.Net MVC vs web forms
- SignalR – Sending a message to a specific user using (IUserIdProvider) *NEW 2.0.0*
- ASP.NET Identity DbContext confusion
- Adding ASP.NET MVC5 Identity Authentication to an existing project
- What does .d in JSON mean?
- Generating reset password token does not work in Azure Website
- Pass Multiple Parameters to jQuery ajax call
- Is it possible to access MVC Views located in another project?
- Global ASAX – get the server name
- Store/assign roles of authenticated users
- Unexpected Caching of AJAX results in IE8
- Difference between Html.RenderAction and Html.Action
- How to Customize ASP.NET Web API AuthorizeAttribute for Unusual Requirements
- Using ASP.Net MVC with Classic ADO.Net
- Get DisplayName Attribute without using LabelFor Helper in asp.net MVC
- How to do a ASP.NET MVC Ajax form post with multipart/form-data?
- ASP.NET Core change EF connection string when user logs in
- Difference between DropDownlist or DropDownListFor Html helper
- ASP.net MVC4 WebApi route with file-name in it
- ASP.NET 5 project hosting on IIS
- Web API Queryable – how to apply AutoMapper?
- ViewModel’s list is null in action
- What’s the best method in ASP.NET to obtain the current domain?
- ASP.NET MVC3 Role and Permission Management -> With Runtime Permission Assignment
- All requests to ASP.NET Web API return 404 error
- How to decide which is right, WebForms or MVC when doing ASP.NET
- File uploading in AJAX updatepanel without full postback