Made a file open in browser instead of downloading it

Welcome to Wisej Support.
Questions, suggestions and plain old bugs - are all welcome here!


How to response a stream PDF for view in browser
In Asp.Net I can response a stream (pdf) and view inline in modern browsers that supports view PDF.
(Made a file open in browser instead of downloading it)
Something like:
string mimeType = “application/pdf”
Response.AppendHeader(“Content-Disposition”, “inline; filename=” + fileName);

Application.Download in someway can response similar way like it?
Or I missing something!
Thanks in advance!

  • You must to post comments

The PdfViewer is a great control, it allows you to pick the pdf viewer to use. You can use the one built in the browser, or force it to use google pdf viewer or even use a full javascript pdf viewer (pdf.js). It’s all already there.

We also have already added Application.DownloadAndOpen() in the current dev build:


  • You must to post comments

Hi Ser Gar,

Maybe PdfViewer control will help.

Hope this works.

  • You must to post comments
Showing 2 results
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
File Name Size
There are currently no files uploaded.
Maximum number of files 5, maximum file size 3.9MB.
Supported file formats: zip pdf gif jpg bmp png cs vb theme json mixin.theme