I have created a aspx, page that allows me to build to draw data from a database & use documentbuilder to create a word doc.
When my aspx page was called simply (without passing variables) my documents would be created perfectly however the moment I passed a variable mypage.aspx?idTable=9, the aspx page would give not download IE would give me a 'cannot connect to server / page doesnt exist' error.
Adding the following code solved the problem.
' Set Download Filename
"Content-Disposition","attachment; filename=" +strSe_DocName+";")
' Send the document in Word format to the client browser.
Without the response.flush / response.end methods the page wasnot being terminated.
I have read other posts about problems with the response object, maybe this is a topic that a thread should address.