CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2008
    Posts
    38

    Show files as content in a ASPXpage

    I am trying to show files like excel/doc in a frame in the same page. E.g when i click on the file it should show the file content in left pane. I could able to show files like Image/PDF using IFRAME, but when i try to show files like Excel/doc. It's not showing the file content instead it is prompting with download options(OPEN/SAVE/CANCEL). I am using IE 8.0.

    Is there any user control to show/Open the files and display the same in a frame/panel?

    Please advise me.

    Thanks in Advance.

  2. #2
    Join Date
    Feb 2005
    Location
    Denmark
    Posts
    742

    Re: Show files as content in a ASPXpage

    It is dependent on the browser of the person watching it.
    If you want to display it, you'll have to turn the content into a web page.

  3. #3
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,284

    Re: Show files as content in a ASPXpage

    It may be possible , but I would actually also advise against it, as that is overriding how things should work normally.

    You could use VBScript, to open the file, then write the contents of that file to your page. Have a look here :

    http://stackoverflow.com/questions/2...using-vbscript

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured