.Net
How do I return an error from a Controller and get the result from ajax
This is my JS code. This is my C# code. (It is intentionally setting an error code) I always get a success response. edit: This has been solved. You need to actually set the HttpResponse.Statusso Read more…