How to use frame set in ASP.NET 2.0?

The page, as usual, consists of header, footer and navigation menu on the left.

The main area of the page is divided into two parts: Upper Area A and bottom Area B.

For certain reason, I have to use frame set. A  and B are two frame respectively.

The .Net frameowrk is v2.0, and we have to use master Page. The IDE is VS.NET 2005.

Where and how do I construct the master page and each .aspx to incorporate the frame set? Should I define the frameset in the master page or .aspx?

LVL 1
chuang4630Asked:
Who is Participating?
 
REA_ANDREWCommented:
Matser Pager COnsists of like this, here is an example

MasterPage.aspx
_______________________________________
                                                                    |
              i Frame1(Containing Any Page)         |
_______________________________________|
                    |                                              |
     iFrame2   |                                              |
 Containing    |                                              |
 Andy Page    |            ContentPlaceHolder      |
                    |                                              |
                    |                                              |
                    |                                              |
                    |                                              |
                    |                                              |
                    |                                              |
___________|__________________________|

Now here is how it happens. In you Visual Web Developer, right click on thr master page and click add content page.  Rename this new page whatever you want. BUT when you navigate to that page which is empty you will see it with the frame on top and the frame to the left. Any data you enter into that new page will appear where it says content place holder
0
 
REA_ANDREWCommented:
All you have to do is create a master page, then just insert iframes into this master page. Create Noraml aspx pages which will be the contents of the iframes, link them up in the Master page using the src thing, then for you content page it has access to all of the iframe cause they are in your master page.
0
 
chuang4630Author Commented:
So if I have two frame, should I create two content pages?
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

 
REA_ANDREWCommented:
yes you have to have a page per frame, that is if you want the content in each frame to be different of course
0
 
chuang4630Author Commented:
But when I inherient master page will show two place holders. I guess I just implement one of them and leave the other blank. Is that right?
0
 
REA_ANDREWCommented:
Just so we are on the same lines.

if you have a Master Page with Two Frames and Of course the COntent Area, then for each content page you make,the master page will show up.

Yes you can access the Master Page from each content page and tell them what to display on the fly. that is correct.
0
 
chuang4630Author Commented:
So, shall I define the iframe in the mater page or contentplaceholder a1.aspx? (two content place holder: a1.aspx and a2.aspx)

Secondly, When I want to display the page, which aspx file shall I refer?
0
 
REA_ANDREWCommented:
Hi,

Do you require further assistance with this?

Andrew
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.