0

I can't seem to find the IsAjaxRequest() method when creating a partial view using ASPX engine. But it is available when I use Razor.

Is there a work around using this method in ASPX engine?

<%
   if(Request.IsAjaxRequest()) //compile error because method is not available.
   {
       //do something
   }
%>
tereško
  • 57,247
  • 24
  • 95
  • 149
Azhar Khorasany
  • 2,682
  • 15
  • 20

0 Answers0