473,378 Members | 1,314 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Frames

I have 3 frames on a web page and using C#

<frame name="left" src="SideMenu.aspx" scrolling="no" noresize style="BACKGROUND-COLOR: #ffffcc">
<frameset rows="16%,84%">
<frame name="rtop" src="TopMenu.aspx">
<frame name="rbottom" src="MainScreen.aspx">
</frameset>
I am trying to display another page in the rbottom frame when I click on the link in the left frame. How do I do that? Does anyone has an example?

Peter
--
Thanks
-------------------
cz****@wsinc.com
Nov 18 '05 #1
7 4153
Hi Peter,

Thank you for using Microsoft Newsgroup service. Based on your description,
your have a group of web pages arranged in a frameset. The frameset has a
left and a right area and the right area has its own two sub
frames(rtop|rbottom), just like:
-------------------------------------------------------------------------
| | |
| | rtop |
|left |-----------------------------------------------|
| | |
| | |
| | rbottom |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
-------------------------------------------------------------------------
Please correct me if my understanding of your problem is not quite accurate.

If so, here is my suggestion:

To generate a such style framesets, you can code as this in the main
frameset page:

<frameset id="fsleft" cols="20%,80%">
<frame name="left" src="SideMenu.aspx" scrolling="no" noresize
style="BACKGROUND-COLOR: #ffffcc">
<frameset id="fsright" rows="16%,84%">
<frame name="rtop" src="TopMenu.aspx">
<frame name="rbottom" src="MainScreen.aspx">
</frameset>
</frameset>
there are two framesets in it. One is for the left|right outer frameset,
the other is for the top|bottom inner frameset in the right area. And there
are three pages set for the three frames' src. Notice that every frame
should be specified a "name" so that you can use it as the "target" for a
Navigator link. Then, if you want to set a hyperlink in the "left" frame
and let the link's page shown in the "rbottom" frame. You can write the
link as this:

<a href="http://www.asp.net" target="rbottom">ASP.NET</a>
the "target" attribte just specified that in which location will the linked
page shown.
Please try out the preceding suggestion to see whether it helps.
Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #2
Thanks for your help, this is what I wanted to do!

But now how do I do the same thing from a server control like a button on
the Web form?

Thank you.

"MSFT" <v-******@online.microsoft.com> wrote in message
news:Aj**************@cpmsftngxa07.phx.gbl...
Hi Peter,

Thank you for using Microsoft Newsgroup service. Based on your description, your have a group of web pages arranged in a frameset. The frameset has a
left and a right area and the right area has its own two sub
frames(rtop|rbottom), just like:
-------------------------------------------------------------------------
| | |
| | rtop |
|left |-----------------------------------------------|
| | |
| | |
| | rbottom |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
-------------------------------------------------------------------------
Please correct me if my understanding of your problem is not quite accurate.
If so, here is my suggestion:

To generate a such style framesets, you can code as this in the main
frameset page:

<frameset id="fsleft" cols="20%,80%">
<frame name="left" src="SideMenu.aspx" scrolling="no" noresize
style="BACKGROUND-COLOR: #ffffcc">
<frameset id="fsright" rows="16%,84%">
<frame name="rtop" src="TopMenu.aspx">
<frame name="rbottom" src="MainScreen.aspx">
</frameset>
</frameset>
there are two framesets in it. One is for the left|right outer frameset,
the other is for the top|bottom inner frameset in the right area. And there are three pages set for the three frames' src. Notice that every frame
should be specified a "name" so that you can use it as the "target" for a
Navigator link. Then, if you want to set a hyperlink in the "left" frame
and let the link's page shown in the "rbottom" frame. You can write the
link as this:

<a href="http://www.asp.net" target="rbottom">ASP.NET</a>
the "target" attribte just specified that in which location will the linked page shown.
Please try out the preceding suggestion to see whether it helps.
Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #3
you need to use hyperlink object but that renders as plain html < a
href="blah blah blah" target="loadmeup"> with no server side events

Hope this helps,

HD

"Peter" <cz****@wsinc.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Thanks for your help, this is what I wanted to do!

But now how do I do the same thing from a server control like a button on
the Web form?

Thank you.

"MSFT" <v-******@online.microsoft.com> wrote in message
news:Aj**************@cpmsftngxa07.phx.gbl...
Hi Peter,

Thank you for using Microsoft Newsgroup service. Based on your

description,
your have a group of web pages arranged in a frameset. The frameset has a left and a right area and the right area has its own two sub
frames(rtop|rbottom), just like:


-------------------------------------------------------------------------
| | |
| | rtop |
|left |-----------------------------------------------|
| | |
| | |
| | rbottom |
| | |
| | |
| | |
| | |
| | |
| | |
| | |


-------------------------------------------------------------------------
Please correct me if my understanding of your problem is not quite

accurate.

If so, here is my suggestion:

To generate a such style framesets, you can code as this in the main
frameset page:

<frameset id="fsleft" cols="20%,80%">
<frame name="left" src="SideMenu.aspx" scrolling="no" noresize
style="BACKGROUND-COLOR: #ffffcc">
<frameset id="fsright" rows="16%,84%">
<frame name="rtop" src="TopMenu.aspx">
<frame name="rbottom" src="MainScreen.aspx">
</frameset>
</frameset>
there are two framesets in it. One is for the left|right outer frameset,
the other is for the top|bottom inner frameset in the right area. And

there
are three pages set for the three frames' src. Notice that every frame
should be specified a "name" so that you can use it as the "target" for a Navigator link. Then, if you want to set a hyperlink in the "left" frame
and let the link's page shown in the "rbottom" frame. You can write the
link as this:

<a href="http://www.asp.net" target="rbottom">ASP.NET</a>
the "target" attribte just specified that in which location will the

linked
page shown.
Please try out the preceding suggestion to see whether it helps.
Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


Nov 18 '05 #4
Hi,

Haven't much used ASP.NET controls but couldn't you just set the buttons
onclick event to
change the location property of the rbottom frame using JS.

So in that case you wouldn't even use an ASP.NET button, just a standard
HTML one.

Regards,
Pete
"Peter" <cz****@wsinc.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Thanks for your help, this is what I wanted to do!

But now how do I do the same thing from a server control like a button on
the Web form?

Thank you.

"MSFT" <v-******@online.microsoft.com> wrote in message
news:Aj**************@cpmsftngxa07.phx.gbl...
Hi Peter,

Thank you for using Microsoft Newsgroup service. Based on your

description,
your have a group of web pages arranged in a frameset. The frameset has a left and a right area and the right area has its own two sub
frames(rtop|rbottom), just like:


-------------------------------------------------------------------------
| | |
| | rtop |
|left |-----------------------------------------------|
| | |
| | |
| | rbottom |
| | |
| | |
| | |
| | |
| | |
| | |
| | |


-------------------------------------------------------------------------
Please correct me if my understanding of your problem is not quite

accurate.

If so, here is my suggestion:

To generate a such style framesets, you can code as this in the main
frameset page:

<frameset id="fsleft" cols="20%,80%">
<frame name="left" src="SideMenu.aspx" scrolling="no" noresize
style="BACKGROUND-COLOR: #ffffcc">
<frameset id="fsright" rows="16%,84%">
<frame name="rtop" src="TopMenu.aspx">
<frame name="rbottom" src="MainScreen.aspx">
</frameset>
</frameset>
there are two framesets in it. One is for the left|right outer frameset,
the other is for the top|bottom inner frameset in the right area. And

there
are three pages set for the three frames' src. Notice that every frame
should be specified a "name" so that you can use it as the "target" for a Navigator link. Then, if you want to set a hyperlink in the "left" frame
and let the link's page shown in the "rbottom" frame. You can write the
link as this:

<a href="http://www.asp.net" target="rbottom">ASP.NET</a>
the "target" attribte just specified that in which location will the

linked
page shown.
Please try out the preceding suggestion to see whether it helps.
Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


Nov 18 '05 #5
Hi Peter,
Thank you for the prompt response. As for the question you mentioned in the
reply, I agree to Peter Row's suggestion , you can just use a html button
like:
<input type="button value="navigator to other place"/>
Thus, you can use client side javascript to specify the operation when the
button is clicked, you needn't write serverside code(the client side code
will be much more quick since the page doesn't need to post back to
server). For example:

In the "SideMenu.aspx" page, you can use a javasciprt function to let a url
opened in a certain frame, and set the html button's "onclick" event as the
function.

<html>
<head>
.....
<script language="javascript">
function JumpTo( url, tar)
{
window.parent.rbottom.location.href = url
}
</script>
.....
</head>
<body>
.......

<input type="button" value="jump to other place"
onclick="JumpTo('http://www.asp.net')" />
...........
</body>
</html>

the "window.parent.rbottom.location.href = url" is used to set the page(in
the rbottom frame)'s url location. In a set of frames which have the same
parent frame can find each other via "window.parent.framename". As the
same, you can use "window.parent.left" to find the "left" frame in the
"rbottom" frame's page's client javascript code.
Please try out the suggestion to see whether it helps. Also if you have any
questions on it, please feel free to let me know.
Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


Nov 18 '05 #6
Hi Peter,

Have you had a chance to try out my suggestion or is your problem resolved?
If you have any questions please feel free
to let me know.

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #7
Thank you for your suggestion - it works very nice!

"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:LS**************@cpmsftngxa07.phx.gbl...
Hi Peter,

Have you had a chance to try out my suggestion or is your problem resolved? If you have any questions please feel free
to let me know.

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: les | last post by:
Hello, I just wonder what are the implications to use frames to build portal. I've seen some sites that are quite fast with frames but I just wonder if there are hidden "costs". I've tried to...
40
by: JohnnyCJohnny | last post by:
Is it pretty safe to say that almost all web surfers now use browsers that are Frames compatible? What are most people using these days? IE? Thanks
7
by: David Hayes | last post by:
I tried finding an answer on http://www.quirksmode.org/ without success. I am attempting a complicated Frames structure. I have made it work in IE, but not Netscape. I begin with three...
95
by: Neal | last post by:
Of course, every frame site I've ever seen has reduced usability and all. We've been through this before. But as frameset is still a part of HTML, there must be some legitimate use for it, hmm?...
25
by: Steal | last post by:
Hi at all I try to validate this page using the link: http://validator.w3.org/ but it return that this is not a valid HTML 4.01 page please where is it error? Steil <!DOCTYPE HTML PUBLIC...
5
by: Dfenestr8 | last post by:
Hi. I'm designing a site, and I'm trying find a way of browsing it without using frames, so I can test the <noframes> </noframes> tags. I use a linux mandrake 10 system, with KDE 3.2. Is there...
7
by: dj Bass | last post by:
simple, they don't like things that restrict the server-side controls... and when it comes to frames, you need client side stuff and that stuff's up the asp.net strategy. right or wrong?
3
by: Nish | last post by:
Is HTML frame is an old technology? Will the modern web application are developed using the HTML frames? Does all the browsers support them? Thank you for your suggestion, Nish
56
by: Deepan HTML | last post by:
Hi All, Currently i am working in a framed environment where i have divided the window as 20% and 80% and the 20% is used for navigation purpose and right frame for displaying the orignal content....
14
by: Mark | last post by:
Hi Guys, I am very new to ASP.NET world. I need to create three frames. One at the top, one on the left and another on the right side. I don't know how to do it. So please help me with it. ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.