locked
iframe not working in edge RRS feed

  • Question

  • Having issues with iframe in edge browser. Works in IE 

    <%# (DataBinder.Eval(Container.DataItem, "image_file_location").ToString().EndsWith(".pdf") ? "<iframe src=\""+ DataBinder.Eval(Container.DataItem, "image_file_location") +"\" style=\"width:100%;height:100%;\" />Your browser does not support IFRAMEs. </iframe>" : "<img src=\""+ DataBinder.Eval(Container.DataItem, "image_file_location") +"\" border=\"0\" height=100% width=100% />") %>

    • Moved by CoolDadTx Thursday, August 20, 2020 1:43 PM ASP.NET related
    Wednesday, August 19, 2020 4:33 PM

All replies

  • Hi EmilyWright,

    Thank you for posting here.

    Iframe is a part of HTML, which belongs to the category of web applications, so I suggest that you can ask your questions on the ASP.Net forum.

    The Visual C# forum discusses and asks questions about the C# programming language, IDE, libraries, samples, and tools.

    Best Regards,

    Timon


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, August 20, 2020 1:43 AM