Hi all!
I need to send an accepted response to the client. However, I need to send only the specific data and not all the extra html page data.
Currently my code behind looks like this:
Response.Write("<CallBackResponse>Accepted</CallBackResponse>");
Response.Flush();
This however sends a response that looks like this: (I only want the portion in bold to be sent.)
<CallBackResponse>Accepted</CallBackResponse> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><title> Payment Approved </title><link href="style.css" rel="stylesheet" type="text/css" /> <style type="text/css"> #makePayment { width: 247px; } body { font-family : Calibri; } </style> </head> <body> <form name="form1" method="post" action="BookSave.aspx" id="form1" style="width:100%; height:100%; text-align:center;"> <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTEzOTM0ODg4MzMPZBYCAgMPZBYCAgEPZBYCAgUPZBYEAgMPDxYCHgRUZXh0BRM5NDIzMTIxMjEzMTU0NjE4OTM3ZGQCCw9kFgxmD2QWAgIBD2QWAgIDDw8WAh8ABQczNjAwLjAwZGQCAQ9kFgICAQ9kFgICAQ8PFgIfAAUEVmlzYWRkAgIPZBYCAgEPZBYCAgEPDxYCHwAFD0RlcG9zaXQgUGF5bWVudGRkAgMPZBYCAgEPZBYCAgEPDxYCHwAFCk5SIHZhbiBXeWt
Any ideas on how to accomplish this?
Thanks in advance!