Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 288
  • Last Modified:

Create Frame in Web Form

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.

Thanks
0
kchoed
Asked:
kchoed
1 Solution
 
SammyCommented:
<iframe id="Frame1" runat="server" src="http://webdivisions.net" visible="true" width="400px" height="600px">
<iframe id="frame2" runat="server" src="http://google.com" visible="true" width="800px" height="600px">


You can adjust the width and height to fit your needs

HTH
0
 
vinodhsomasekharanCommented:
Hai,

vs.net 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>
</frameset>

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

Regards,
--Vinu
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now