hi,
I have an application in which i have implemented an HTTP handler. I m calling this handler with jquery from my aspx button click. I have written code for the handler to return a PDF file. I want the browser to prompt for open or save option when i click the button. My code is rendering something like this
%PDF-1.3 3 0 obj <> endobj 4 0 obj <> stream ...
this is my code for calling the HTTP handler where i have the method for creating a PDF
function pdf_report() {
$
.ajax({
type
:"POST",
url
: "Handlers/pdf_Handler.ashx",
contentType
: "application/json; charset=utf-8",
success
: OnComplete,
error
: OnFail
});
}
help me for opening this pdf file in client side in my browser when i click html control button in my asp page.