HOW TO IDENTIFY AJAX REQUEST WITH C# IN MVC.NET?

Chris Anderson

Total Post:197

Points:985
Posted by  Chris Anderson
 6632  View(s)
Ratings:
Rate this:
  1. Chris Anderson

    Post:197

    Points:985
    How to identify AJAX request with C# in MVC.NET?

    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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!