Tuesday, March 13, 2012

Targeting a frame on page load

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
FrancesEach 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 eac
h
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.
"Frances Valdes" wrote:

> 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 th
e
> 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
>
>

0 comments:

Post a Comment