I am trying to open a PDF inline. The code below works perfectly on the local file sytem, but when I upload the .aspx on the webserver, It gves the error "Internet Explorer Cannot Display The Webpage". The Size of the PDF is 3.64 MB. My PDF is in the samefolder as the .aspx page at both the locations, that is the local file system and the web server.
protected void Page_Load(object sender, EventArgs e) { Response.ClearContent(); Response.ClearHeaders(); Response.ContentType = "application/pdf"; Response.AddHeader("Content-Disposition", "inline; filename=survey.pdf"); Response.WriteFile("survey.pdf"); Response.Flush(); Response.Close(); } Please HELP I have been sacratching my head at this for hours .!!
 
...

Go to the complete details ...