Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

frames and switching pages

Status
Not open for further replies.

gd082

Programmer
Mar 12, 2002
42
0
0
BE
I have a page that consists of 2 frames.The left frame is a column with links. When i click one, the right frame shows me another page. so far so good.

Now the problem is that i use hyperlinks in the left frame, while i need a click event on that page for that certain link. So i thought, use a linkbutton instead of a hyperlink.But then i cannot make the right frame showing another page. When i use server.transfer within the click-event, the current frame (the one with the links) refreshes and shows the other page.

Does anyone now how i can solve the problem?

thnx
 
You could call a javascript method that did something like this:

function LoadInFrame(url)
{
parent.frames[2].location.href=url;
}

Then your link button could have an attribute like
OnClick='javascript:LoadInFrame(url);'

There are probably a million other ways :)

Good luck!
TealWren
 
It's not working with javascript. So it's still not working. Any other solution?
 
You've set your right frames Target attribute to your left frame, right?

Jack
 
Yes, but I can do this only with a hyperlink while I need a click event.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top