How to use Iframe in .NET ? RRS feed

  • Question

  • How can I load url inside Iframe. URL should not from localhost It should be like https://youtube.com, https://facebook.com, etc
    • Moved by CoolDadTx Tuesday, May 15, 2018 2:07 PM ASP.NET related
    Monday, May 14, 2018 7:36 PM

All replies

  • What does .NET have to do with this?  Loading a URL inside an <iframe> is an ordinary HTML thing:

    <iframe src="https://youtube.com"></iframe>

    Tim Roberts, Driver MVP Providenza & Boekelheide, Inc.

    Tuesday, May 15, 2018 12:17 AM
  • It's not working. it's work only on localhost
    Tuesday, May 15, 2018 5:22 AM
  • Hi BigBoss Lai,

    Thank you for posting here.

    For your question, what is the type of your project?

    If your question is more related to ASP.NET, please post a new thread in asp.net forum for suitable support.


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

    Best Regards,


    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.

    Tuesday, May 15, 2018 7:54 AM