473,663 Members | 2,854 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Frames

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

<frame name="left" src="SideMenu.a spx" scrolling="no" noresize style="BACKGROU ND-COLOR: #ffffcc">
<frameset rows="16%,84%">
<frame name="rtop" src="TopMenu.as px">
<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.co m
Nov 18 '05 #1
7 4240
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|rbo ttom), 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.a spx" scrolling="no" noresize
style="BACKGROU ND-COLOR: #ffffcc">
<frameset id="fsright" rows="16%,84%">
<frame name="rtop" src="TopMenu.as px">
<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.m icrosoft.com> wrote in message
news:Aj******** ******@cpmsftng xa07.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|rbo ttom), 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.a spx" scrolling="no" noresize
style="BACKGROU ND-COLOR: #ffffcc">
<frameset id="fsright" rows="16%,84%">
<frame name="rtop" src="TopMenu.as px">
<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="loadmeu p"> with no server side events

Hope this helps,

HD

"Peter" <cz****@wsinc.c om> wrote in message
news:%2******** ********@TK2MSF TNGP10.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.m icrosoft.com> wrote in message
news:Aj******** ******@cpmsftng xa07.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|rbo ttom), 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.a spx" scrolling="no" noresize
style="BACKGROU ND-COLOR: #ffffcc">
<frameset id="fsright" rows="16%,84%">
<frame name="rtop" src="TopMenu.as px">
<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.c om> wrote in message
news:%2******** ********@TK2MSF TNGP10.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.m icrosoft.com> wrote in message
news:Aj******** ******@cpmsftng xa07.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|rbo ttom), 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.a spx" scrolling="no" noresize
style="BACKGROU ND-COLOR: #ffffcc">
<frameset id="fsright" rows="16%,84%">
<frame name="rtop" src="TopMenu.as px">
<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="navigato r 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.a spx" 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="javas cript">
function JumpTo( url, tar)
{
window.parent.r bottom.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.locatio n.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.m icrosoft.com> wrote in message
news:LS******** ******@cpmsftng xa07.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
1876
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 use in the past and I run into a lot of problems when I worked with environment where there were frame and no frames pages. Please let me know if frames are OK to use for serious portal.
40
2921
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
2312
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 frames, where the two lower ones are within a Frameset within the master Frameset: 1111111111111111111
95
5729
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? For most markup I know when it's useful and when it's not, but regarding table markup I sure know when it isn't good, but can't really come up with a way it would be good. As you all are among the sharpest pencils in the bag, let me ask: Do you...
25
43443
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 "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> <html> <head>
5
16586
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 a browser for linux that doesn't use frames? Or is it possible to configure either firefox or konqueror to not use frames?
7
2984
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
2418
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
3821
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. Now i want to Disable ad Enable the menu items which are placed in the left frame for navigation purpose. Can any of you input me with any idea as how to proceed? If you need any other information then please let me know.
14
7052
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. I'll appreciate any help/example you can provide. I am using visual studio 2005. Thanks, Mark
0
8436
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8858
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8771
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8548
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8634
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5657
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4182
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2763
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2000
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.