Results 1 to 7 of 7

Thread: Frames in ASP.Net

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Frames in ASP.Net

    I am brand new to ASP.Net (and really web programming). I am developing a web site and I need to know how to implement Frames - actually the concept of frames.

    Basically, I need to keep some content visible at all times. At the top, left and bottom of the page.

    I know Frames are not recommended but what are my options, (strictly ASP.Net speaking).

    Just a pointer in the right direction is all I need.

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Just use a bog standard frameset tags
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3
    Fanatic Member
    Join Date
    Oct 1999
    Location
    England
    Posts
    982
    Here is some basic frame code.

    Code:
    <html>
     <head>
     </head>
     <frameset cols="1*,1*">
     <frame name=Frame2 >
     <frameset rows="1*,1*">
      <frame name=Frame1 >
      <frame name=Frame4 >
     </frameset>
     <noframes>
      <body >
      <div >
      <p><span >This page uses frames, but your browser
      doesn't support them.</span></p>
      </div>
      </body>
     </noframes>
    </frameset>
    </html>
    What HTML editor are you using?


    Things I do when I am bored: DotNetable

  4. #4

    Thread Starter
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758
    Please excuse my ignorance.

    I am using Visual Studio .Net 2003. I thought it generated the HTML code - there was nothing for me to do in HTML.

    All I want is to create non-scrolling regions - at the top, left and bottom of the screen.

  5. #5
    Fanatic Member
    Join Date
    Oct 1999
    Location
    England
    Posts
    982
    Right now I see.

    I went into VS.Net 2003 and although the frames menu item is enabled you cannot add frames to either a html page or a aspx page. I could understand it with aspx pages but not html pages.

    Another way of doing it is to have a HTML table with 3 rows and 2 columns. the top, bottom rows and left columns would probabley be narrower. In the middle right cell you could put an Iframe. You can load pages in to it as a normal frame, it will scroll.

    Other than this I am no further into ASP.NET than you.


    Things I do when I am bored: DotNetable

  6. #6
    Hyperactive Member ARPRINCE's Avatar
    Join Date
    Mar 2003
    Location
    Pinoy in NJ
    Posts
    381
    Using the VS IDE, add a "NEW ITEM" and on the "Template" (Right Side), choose FRAMESET instead of WEBFORM or HTML PAGE.

  7. #7
    Fanatic Member
    Join Date
    Oct 1999
    Location
    England
    Posts
    982
    There we go.

    Now I know aswell.


    Things I do when I am bored: DotNetable

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width