PDA

Click to See Complete Forum and Search --> : Button problem


liorlankri
Dec 15th, 2004, 03:52 AM
I have file called "main.aspx" with this code:

<frameset border="0" frameSpacing="0" frameBorder="no" cols="97,87%">

<frame name="menue" src="left.aspx" noResize scrolling="auto" target="main">

<frame name="main" src="right.aspx">



In "left.aspx" (The menue) I have a botton. I want that click on it will open the file "Home.aspx" in the right frame (called "main")!!!

In "left.aspx.vb" I have this code but it's dont work.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Page.RegisterClientScriptBlock("Home", "<script language='javascript'>document.frames['main'].src='Home.aspx';</script>")

End Sub


What's the problem and how to fix it?