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

x
?
Solved

How to use frame set in ASP.NET 2.0?

Posted on 2006-05-17
10
Medium Priority
?
9,849 Views
Last Modified: 2008-01-09
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?

0
Comment
Question by:chuang4630
  • 5
  • 3
8 Comments
 
LVL 20

Expert Comment

by:REA_ANDREW
ID: 16699509
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
 
LVL 1

Author Comment

by:chuang4630
ID: 16699652
So if I have two frame, should I create two content pages?
0
 
LVL 20

Expert Comment

by:REA_ANDREW
ID: 16699660
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:chuang4630
ID: 16699688
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
 
LVL 20

Expert Comment

by:REA_ANDREW
ID: 16699717
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
 
LVL 1

Author Comment

by:chuang4630
ID: 16702938
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
 
LVL 20

Accepted Solution

by:
REA_ANDREW earned 1500 total points
ID: 16706641
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
 
LVL 20

Expert Comment

by:REA_ANDREW
ID: 16790164
Hi,

Do you require further assistance with this?

Andrew
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Screencast - Getting to Know the Pipeline

564 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