Create Frame in Web Form

Posted on 2006-05-28
Last Modified: 2010-05-18
Hi Experts,

Could you please help me how to create frame in web form?

E.g., in the web form, seperate in to 2 frame, and each show different web location.

Question by:kchoed
    LVL 27

    Expert Comment

    <iframe id="Frame1" runat="server" src="" visible="true" width="400px" height="600px">
    <iframe id="frame2" runat="server" src="" visible="true" width="800px" height="600px">

    You can adjust the width and height to fit your needs

    LVL 5

    Accepted Solution

    Hai, 2003 supports HTML Transitional which doesn't support frames. However you can paste the following code in your html view (instead of body section)to get frames.

    <frameset rows="20%,80%" border="0" cols="100%" frameSpacing="0" frameBorder="0">
          <frame name="header" frameborder="0" src="YourPage.aspx" scrolling="no" noresize>
          <frame name="main" frameborder="0" src="YourPage1.aspx" noresize>

    It is also good  to change the line
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN">


    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on could not pull conte…
    Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now