Click here to Skip to main content
16,017,488 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to receive the HTTP Callback request and send OK response to that request in asp.net.

Can anyone provide me sample example or reference links for this.

Thanks.
Posted

1 solution

Responding to a request means having a handler for it, i.e. a script with the right name in old school ASP.net, or a controller method in MVC. I.e. if you are submitting a request to yourdomain.com/somepage.aspx?queryparam=1, you need to write a somepage.aspx to handle it. In MVC if you submit to yourdomain.com/Ajax/MyMethod?queryparam=whatever then you need an AjaxController with a MyMethod HTTP visible method.

Sending any response that you haven't explicitly set to be an error page will result in a HTTP 200 (OK).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900