page.response: no se puede configurar en asp.net

I generate a PDF document inside a helper method. the helper method returns a HttpResponse object, which is the response containing the generated PDF. But I can't change the page.response to the one the method returned. How shuld I solve this?

preguntado el 08 de enero de 11 a las 20:01

2 Respuestas

Get the text from the underlying HTMLTextWriter for your PDF HTTPResponse object and write it to the current one using the Response.OutputStream objeto.

Respondido el 10 de enero de 11 a las 23:01

Get the data out of the response object that you get from the method, and send it into the response object that is handling the response.

I don't see the reason for the method to return a response object; as it can't be used as a response to anything it seems pointless.

Respondido el 08 de enero de 11 a las 23:01

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.