Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > launching asp page in frame in frameset based on toolbar

Thread Tools

launching asp page in frame in frameset based on toolbar

Steve Myers
Posts: n/a
Ok, learning .net and working with a frameset. The "Top" frame is
basically a toolbar using the microsoft webcontrols. I want to load
the "Bottom" frame based on the button selected on the top frame.

I can retrieve the button info in this vbscript sub:

Private Sub Toolbar1_ButtonClick(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Toolbar1.ButtonClick

myvar = sender.Text

If myvar = "a" launch page1.asp in "bottom"
If myvar = "b" launch page2.asp in "bottom"

End Sub

What I'm trying to understand is the code to add to do this?
Reply With Quote
Posts: n/a
Hi Steve,

To change a frame from another, we need to use some client script, you may
refer to this article as a sample:

HOWTO: Refresh a Specific Frame from Script;EN-US;Q194227

In your case, you may use following script to change web page in a frame:

window.parent.frames(1).location ="webform2.aspx"

However, since above are client script, you can't execute it in code behind
of a ASP.NET control. I suggest you can add them to client side with
Page.RegisterClientScriptBlock Method. For more information, you may refer
frlrfSystemWebUIPageClassRegisterClientScriptBlock Topic.asp

Hope this help,

Microsoft Online Support

Get Secure!
(This posting is provided "AS IS", with no warranties, and confers no

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
value transfer from page to frame in second page frameset lev Javascript 1 09-10-2008 04:39 PM
Writing to a frameset causes the frameset to resize xzzy ASP .Net 4 03-23-2006 10:31 PM
Frameset, Selected Index, Target Frameset ASP .Net 0 09-29-2004 09:37 PM
Changing src of a frame of a frameset within another frameset? Julius Mong Javascript 1 05-10-2004 07:35 PM
How do you make sure a frameset is loaded? I'm trying to open a frameset in a new window which shows a specific html page in a specific frame ck388 Javascript 1 09-24-2003 08:32 PM