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. Problem with using iFrame in asp.net

Problem with using iFrame in asp.net

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelp
3 Posts 2 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.
  • P Offline
    P Offline
    panyaung
    wrote on last edited by
    #1

    Hi, I am trying to display MS Word document in the webpage and I am using iframe to display. When I put document file (which is under the project folder), it shows in the page but if I include the file path, the document doesn't diplay in the frame. So I tested the same code in notepad, save as .htm format and then it works. I don't know what's the problem. Anyone have idea to solve this problem. My code is: <FRAME WIDTH="500px" HEIGHT="500px" NAME="fframe" SRC=""> <EMBED SRC="" width="500px" height="500px"></EMBED>

    L 1 Reply Last reply
    0
    • P panyaung

      Hi, I am trying to display MS Word document in the webpage and I am using iframe to display. When I put document file (which is under the project folder), it shows in the page but if I include the file path, the document doesn't diplay in the frame. So I tested the same code in notepad, save as .htm format and then it works. I don't know what's the problem. Anyone have idea to solve this problem. My code is: <FRAME WIDTH="500px" HEIGHT="500px" NAME="fframe" SRC=""> <EMBED SRC="" width="500px" height="500px"></EMBED>

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      If your document is under the project folder(application folder), then specify the src attribute using relative url like src="/Project/testMailMerge.doc'

      P 1 Reply Last reply
      0
      • L Lost User

        If your document is under the project folder(application folder), then specify the src attribute using relative url like src="/Project/testMailMerge.doc'

        P Offline
        P Offline
        panyaung
        wrote on last edited by
        #3

        My document is not under project folder. It is in another folder. The problem is if I use notepad and save the page in html format, the document is opened but with asp page it didn't work. Any more idea?

        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