Targeting a frame on page load

F

Frances Valdes

I have been struggling with this and would be really grateful if anyone
could help.

I have a page with 2 frames. I would like to use the page load event on the
left hand page to use a variable to change the page in the right frame.

On the left page it would look something like:

Private Sub Page_Load etc
dim NewHtmlPage as string
NewHtmlPage = whatever.html
Pageright.href = NewHtmlPage
End Sub

Does anyone have any ideas how I could go about this.
Thanks for any input
Frances
 
G

Guest

Each frame points at a different web page (aspx page). As far as the server
knows, the web requests made by each frame are completely independent of each
other. Because of this, you can not communicate on the sever between the
frames directly.

Your best bet is to store the values you need to relay in session variables,
or use Javascript on both pages inside the frames to communicate on the
client.
 

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

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top