locked
how to see a word doc file data in iframe RRS feed

  • Question

  • User402573448 posted

    hi,

    i am using i frame in that how to see a word doc file plz help me ..using asp.net c#

    Thursday, September 18, 2008 6:02 AM

All replies

  • User-808362359 posted
     
    <strike><iframe src="Upload/Hello.doc" width="80%" height="500px" style="OVERFLOW: auto" align=absmiddle></strike>
    <strike>You can change it from code behind too using this:</strike>
    <strike>iFrame1.Attributes["src"] = "Upload/Hello.doc"; </strike>
    Ignore this one. 
     

     

    Friday, September 19, 2008 2:34 AM
  • User-808362359 posted
    <iframe src="Upload/Hello.doc" width="80%" height="500px" style="OVERFLOW: auto" align="absmiddle">
     
    You can change it from code behind too using this:
    in .aspx, 
    <iframe width="80%" height="500px" style="OVERFLOW: auto" align="absMiddle" id="iFrame1" runat="server"> 
    in aspx.cs, 
    iFrame1.Attributes["src"] = "Upload/Hello.doc"; 
     

     

    Friday, September 19, 2008 2:37 AM
  • User402573448 posted

     hi mondal,

    thanku,but

    I cannot see the word file in iframe without doc it is displaying only iframe what to do plz help

    Friday, September 19, 2008 4:07 AM
  • User-808362359 posted

     I could not get you properly. It works fine for me. Check my previous post again and try once more. It should work. When the page will load, it will prompt, whether you want to Open or Save or Cancel. Select Open to view, Save to download and cancel to not load that.

    Friday, September 19, 2008 4:30 AM
  • User402573448 posted

    Thanku so much i tried i got it...............but what i need is that when i execute the aspx page i should get the word doc text into the i frame ok na ex:if i take a iframe the word file text that means name a file word.doc in that ur resume is there ok na that resumes text has to be displayed in that iframe ok Regards,

    Saturday, September 20, 2008 1:56 AM