none
jquery ajax call and mvc controller RRS feed

  • Question

  • I have a mvc controller. This controller is called from jquery ajax call. What shall I return from my controller so that ajax.error promise is executed.

    Thanks in advance.

    • Moved by CoolDadTx Thursday, June 29, 2017 1:55 PM ASP.NET related
    Thursday, June 29, 2017 12:04 PM

All replies

  • Hi surya19876,

    This is Visual C# forum. As your issue is related to Web, please ask your question into ASP.Net forum for getting quick response. I am moving your thread to off-topic.

    https://forums.asp.net/

    Your understanding and cooperation will be grateful.

    Thanks,
    Sabah Shariq

    [If a post helps to resolve your issue, please click the "Mark as Answer" of that post or click Answered "Vote as helpful" button of that post. By marking a post as Answered or Helpful, you help others find the answer faster. ]

    Thursday, June 29, 2017 1:49 PM
  • you need to return JSON format and then parse that in ajax method.

    Thanks & regards, Asma Khalid web: www.asmak9.com

    Monday, July 3, 2017 1:14 PM