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
   }
%>
3
  • stackoverflow.com/questions/3441735/detect-ajax-call-asp-net Commented Aug 2, 2013 at 9:11
  • 1
    Thanks v much. If you can put this in an answer, I will mark it as an answer. Commented Aug 2, 2013 at 9:22
  • No problem. Appreciate it, but not really my answer so if you like it, up-vote the original question/answer. Commented Aug 2, 2013 at 9:27

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.