top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the "HelperPage.IsAjax" Property?

+1 vote
763 views
What is the "HelperPage.IsAjax" Property?
posted Mar 14, 2017 by Jdk

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

HelperPage.IsAjax gets a value that indicates whether Ajax is being used during the request of the Web page.

Namespace: System.Web.WebPages

Assembly: System.Web.WebPages.dll

However, the same can be achieved by checking requests header directly:

Request["X-Requested-With"] == “XmlHttpRequest”. 
answer Mar 29, 2017 by Manikandan J
...