Home > DeveloperSection > Interviews > How to identify AJAX request with C# in MVC.NET?

Posted on    August-29-2011 1:24 AM

 ASP.NET MVC ASP.NET MVC 
Ratings:
 1 Answer(s)
  6110  View(s)
Rate this:

Chris Anderson
Chris Anderson

Total Post:197

Points:985
Posted on    August-29-2011 12:00 AM

The solution is in depended from MVC.NET framework and universal across server-side technologies. Most modern AJAX applications utilize XmlHTTPRequest to send async request to the server. Such requests will have distinct request header:

X-Requested-With = XMLHTTPREQUEST


Don't want to miss updates? Please click the below button!

Follow MindStick