---
title: "How to identify AJAX request with C# in MVC.NET?"  
description: "How to identify AJAX request with C# in MVC.NET?"  
author: "Chris Anderson"  
published: 2011-08-29  
updated: 2020-09-22  
canonical: https://www.mindstick.com/interview/1191/how-to-identify-ajax-request-with-c-sharp-in-mvc-dot-net  
category: "asp.net mvc"  
tags: ["asp.net mvc"]  
reading_time: 1 minute  

---

# 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 \
\

## Answers

### Answer by Chris Anderson

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 \
\


---

Original Source: https://www.mindstick.com/interview/1191/how-to-identify-ajax-request-with-c-sharp-in-mvc-dot-net

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
