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
  • 58,060
  • 25
  • 98
  • 150
Azhar Khorasany
  • 2,712
  • 16
  • 20

0 Answers0