Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 134697
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:39:37+00:00 2026-05-11T06:39:37+00:00

I prefer to use jQuery with my ASP.NET MVC apps than the Microsoft Ajax

  • 0

I prefer to use jQuery with my ASP.NET MVC apps than the Microsoft Ajax library. I have been adding a parameter called ‘mode’ to my actions, which I set in my ajax calls. If it is provided, I return a JsonViewResult. If it isn’t supplied, I assume it was a standard Http post and I return a ViewResult.

I’d like to be able to use something similar to the IsMvcAjaxRequest in my controllers when using jQuery so I could eliminate the extra parameter in my Actions.

Is there anything out there that would provide this capability within my controllers or some simple way to accomplish it? I don’t want to go crazy writing code since adding a single parameter works, it just isn’t ideal.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T06:39:37+00:00Added an answer on May 11, 2026 at 6:39 am

    Here’s an except from MVC RC1 release notes – Jan 2009

    IsMvcAjaxRequest Renamed to IsAjaxRequest

    The IsMvcAjaxRequest method been renamed to IsAjaxRequest. As part of this change, the IsAjaxRequest method was updated to recognize the X-Requested-With HTTP header. This is a well known header sent by the major JavaScript libraries such as Prototype.js, jQuery, and Dojo.

    The ASP.NET AJAX helpers were updated to send this header in requests. However, they continue to also send it in the body of the form post in order to work around the issue of firewalls that strip unknown headers.

    In other words – it was specifically renamed to be more ‘compatible’ with other libraries.

    In addition, for anyone who hasnt read the full release notes but has been using previous versions – even as recent as the beta – I STRONGLY recommend you read them in full. It will save you time in future and most likely excite you with some of the new features. Its quite surprising how much new stuff is in there.

    Important note: You will need to make sure you upgrade the .js file for MicrosoftAjax.MVC (not the exact name) if upgrading to RC1 from the Beta – otherwise this method won’t work. It isn’t listed in the release notes as a required task for upgrading so don’t forget to.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It appears that both jQuery and ASP.Net MVC have ways of performing AJAX functions.
I've been looking at ASP.NET AJAX Client Templates. My position is that I prefer
I have the following jQuery that does find the ASP.NET server control (tested by
I have an ASP.NET MVC 3 application that uses a WCF service within the
I have just started to use the jquery mobile library and have hit a
Do you have a default type that you prefer to use in your dealings
I am a web and mobile application developer and I prefer to use MVC
Are there any way to do so? I prefer to use VB.NET or Java
Is it possible to develop iphone apps with java? I'd prefer to use alchemo
We've an ASP.Net MVC2 web app (SQL 2008 in backend). We use Data Annotations

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.