Request.IsAjaxRequest returns false

前端 未结 4 931
感动是毒
感动是毒 2021-01-14 01:26

I have an MVC project in which I have a form with a submit button. I have added a jquery client-side handler that intercepts the form submit event. The javascript function

4条回答
  •  伪装坚强ぢ
    2021-01-14 01:38

    The Request.IsAjaxRequest property should reflect the existence of the X-Requested-With HTTP header. Is this header actually sent to the server? As James suggests, try to profile this with Fiddler or similar proxy server alternatives.

提交回复
热议问题