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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Frames and buttons

Status
Not open for further replies.

KevoMee

Technical User
Apr 30, 2002
72
IE
Hi again,

I have a page with 2 frames. Up on the top frame I have a button. When this button is pressed I want a particular aspx page to load down on the bottom page. Has anyone got any idea of how to do this? I would prefer to do it not using a link button and just a regular button. I can use the "page.response.redirect" function but I don't know how to direct it to a particular frame.

Cheers,
Kev.
 
This might be most easily accomplished using pure client side javascript:

parent.top.frames[frameIndex].location = 'wherever.aspx';

Call that onClick of your button, and it will work just fine.

frameIndex is 0 based.

:)
paul
penny1.gif
penny1.gif
 
Thanks paul,

I've gone over my solution again and turns out user controls is the best route to down.
thanks anyway :D
kev.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top