Help Please - Frameset question

G

Guest

If have a page with a frameset set up as below:

There are 3 rows of pages displayed.

I need the navigation to be in the middle.

When I click on one of the links in the navigations, I need to be able
to dictate a new source page for the top row AND the bottom row. How
can I do this without refreshing/reloading the middle page with my
nav?

Any help would be greatly appreciated.

-reynald
7078895

---------

Dim outputstr As String
outputstr = "<html>" _
& vbCrLf & "<head>" _
& vbCrLf & "<title>Forms from code
behind</title>" _
& vbCrLf & "</head>" _
& vbCrLf & "<frameset rows='250,70,200'
FRAMESPACING='0' FRAMEBORDER='NO' BORDER='0'>" _
& vbCrLf & "<frame name='TopFrame' src='" &
"NewsHeader.aspx" & "' FRAMEBORDER='0' BORDER='0' MARGINWIDTH='0'
MARGINHEIGHT='0' SCROLLING='yes'>" _
& vbCrLf & "<frame name='Nav' src='" &
"navigation.aspx" & "' FRAMEBORDER='0' BORDER='0' MARGINWIDTH='0'
MARGINHEIGHT='0' SCROLLING='yes'>" _
& vbCrLf & "<frame name='MainFrame' src='" &
"NewsBody.aspx" & "' FRAMEBORDER='0' BORDER='0' MARGINWIDTH='0'
MARGINHEIGHT='0' SCROLLING='yes'>" _
& vbCrLf & "</frameset>" _
& vbCrLf & "</html>"
Response.Write(outputstr)
 
S

Steve C. Orr [MVP, MCSD]

This is one of the many reasons that using frames in .NET is generally a bad
idea.
Usually you're better off partitioning logical sections of your page into
web user controls.
Here's more info:
http://msdn.microsoft.com/library/d...n/html/vbconintroductiontowebusercontrols.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vboriwebusercontrols.asp
http://msdn.microsoft.com/library/d...l/vbconWebUserControlsVsCustomWebControls.asp

If you must stick with frames then you'll need to use client side javascript
to accomplish your goal.
 
H

Hermit Dave

if you dont want to cause a refresh of the middle one... try using Hyperlink
and use target="framename"

that will cause it to load the link without causing postback... (hyperlink
is translated as normal a href and does not have a postback)

should sort you out...
 
G

Guest

Sounds good. But for my purposes, how can I control which user control
(at the top and bottom page) is dispayed FROM the navbar links (middle
page)?. I'd like to do this without passing values through the url?

I didn't see an example of this in the docs.

-reynald
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Refresh a Frameset 0
Please Help? 0
Help with code 0
Hyperlink & Frames 1
Frameset 3
Help with Visual Lightbox: Scripts 2
Help please 8
Help with my responsive home page 2

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,066
Latest member
VytoKetoReviews

Latest Threads

Top