I need some help in handling HttpContext.Response object from httpHandler. Here is what im doing
1>User Clicks on Create PDF button to create a PDF file on the server. Server creates the PDF file and sets the URL
to HyperLink button. eg http:\\localhost\Data\myfile.pdf
2> User clicks on hyperlink to open the PDF in new browser window.
3>Enter some data and hit Submit button on the PDF. (NOTE the button is on the PDF itself)
4>PDF submits the data using POST method and URL. eg http:\\localhost\Submit.myext
5> I have written HttpHanlder to handle all the request of type .myext. The hanlder needs to read the data and create new file and return this new file using response.
reading the data and creating the new file is easy and already done.
Q: How do i send back this new file to the same open window. So that it will close the current opened file and open this new file. Response.WriteFile() does not seems to be working properly.
Q: Is Sending file from HttpHandler good? or should i do something else.
View Complete Post