Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Opening all files in browser from ASP.Net Web Page

Opening all files in browser from ASP.Net Web Page

Scheduled Pinned Locked Moved ASP.NET
csharpasp-net
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anuradha612
    wrote on last edited by
    #1

    Hi, I am developing an application which needs, to open the file in the browser, the file can be of any type (i.e.) Word Document or excel sheet or Jpeg image or any thing Can any one suggest some mechanism to do this. I am developing ASP.Net web application with VB.Net Thanks in advance

    S P 2 Replies Last reply
    0
    • A Anuradha612

      Hi, I am developing an application which needs, to open the file in the browser, the file can be of any type (i.e.) Word Document or excel sheet or Jpeg image or any thing Can any one suggest some mechanism to do this. I am developing ASP.Net web application with VB.Net Thanks in advance

      S Offline
      S Offline
      Sun Rays
      wrote on last edited by
      #2

      Hi, you can do Reponse.Redirect("full Path of file") So it will open file in browser.

      Thanks, Sun Rays To get something you must have to try once. My Articles

      1 Reply Last reply
      0
      • A Anuradha612

        Hi, I am developing an application which needs, to open the file in the browser, the file can be of any type (i.e.) Word Document or excel sheet or Jpeg image or any thing Can any one suggest some mechanism to do this. I am developing ASP.Net web application with VB.Net Thanks in advance

        P Offline
        P Offline
        Paddy Boyd
        wrote on last edited by
        #3

        But the browser will only open those file types that it can support within itself. If you try to, for example, open a .cs file, it will open outside the browser.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups