You must Sign In to post a response.
  • Category: ASP.NET

    Show PDF file in browser without showing pdf url

    Show PDF file in browser without showing pdf url. Means by pressing F12 browser shows pdf url.
    Client don't want to show that url.
  • #767159
    Url rewriting you can do it.
    SRI RAMA PHANI BHUSHAN KAMBHAMPATI

  • #767160
    you can do it by creating a virtual directory, I mean create a virtual directory that will pointing to PDF path and when you want to display that file in browser, show it with the help of HTTP path
    so the you need to code it like

    Response.Redirect("Http://ipaddress/virtualDirName/test.pdf");

    ask if you have any doubts
    hope it helps

    Thanks
    Koolprasd2003
    Editor, DotNetSpider MVM
    Microsoft MVP 2014 [ASP.NET/IIS]

  • #767171
    check this article -

    http://www.c-sharpcorner.com/UploadFile/1583f2/view-pdf-files-from-web-browser-in-C-Sharp/


  • Sign In to post your comments