public static bool IsAjaxRequest(this HttpRequest request) { if (request == null) { throw new ArgumentNullException("request"); } return (request["X-Requested-With"] == "XMLHttpRequest") || ((request.Headers != null) && (request.Headers["X-Requested-With"] == "XMLHttpRequest")); }
Mark This Response as Answer -- Chandu http://www.dotnetfunda.com/images/dnfmvp.gif
Regards, Jayakumar Selvakani
Login to post response