---
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-24  
updated: 2020-09-20  
canonical: https://www.mindstick.com/interview/1169/how-to-identify-ajax-request-with-c-sharp-in-mvc-dot-net  
category: "asp.net"  
tags: ["asp.net"]  
reading_time: 1 minute  

---

# How to identify AJAX request with C# in MVC.NET?

Request["X-Requested-With"] == "XmlHttpRequest"

## Answers

### Answer by Chris Anderson

Request["X-Requested-With"] == "XmlHttpRequest"


---

Original Source: https://www.mindstick.com/interview/1169/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.
