Hi,
I have this special case. Where the whole page id divided into to vertical frames by first (1) and second (1-2) frmaes. First frame (1) also has a subframe (horizontal frame). Hence it's nested frames for left frame (please see below). Both frame (1-1) and (1-2) are ASPX pages, only frame (1) is HTML page. What I want is how to transfer data from Frame (1-1) to frame (1-2) and make frame (1-2) refresh automatically. Like search button in frame (1-1) pupulates the data from database in frame (1-2) based on the text field in frame (1-1).
I have tried this but it populates the frame (1-2) in to left frames only.
url ="RightFrame.ASPX";
string frameScript = "<script language='javascript'>" +
"window.parent.frames(1).location='" + url + "';</script>";
Page.RegisterStartupScript("FrameScript", frameScript);
1. I use window.parent.frames(0).location - shows at frame (1)
2. I use window.parent.frames(1).location - shows at frame (1-1)
3. 1. I use window.parent.frames(2).location -nothing happens.
Please help me.
Thanks,
Tathagat
-----------------------------------------------------------
First Frame (1) |
--------------------
| Second Frame (1-2)
Second Frame (1-1)
|
|
|
|
|
I have this special case. Where the whole page id divided into to vertical frames by first (1) and second (1-2) frmaes. First frame (1) also has a subframe (horizontal frame). Hence it's nested frames for left frame (please see below). Both frame (1-1) and (1-2) are ASPX pages, only frame (1) is HTML page. What I want is how to transfer data from Frame (1-1) to frame (1-2) and make frame (1-2) refresh automatically. Like search button in frame (1-1) pupulates the data from database in frame (1-2) based on the text field in frame (1-1).
I have tried this but it populates the frame (1-2) in to left frames only.
url ="RightFrame.ASPX";
string frameScript = "<script language='javascript'>" +
"window.parent.frames(1).location='" + url + "';</script>";
Page.RegisterStartupScript("FrameScript", frameScript);
1. I use window.parent.frames(0).location - shows at frame (1)
2. I use window.parent.frames(1).location - shows at frame (1-1)
3. 1. I use window.parent.frames(2).location -nothing happens.
Please help me.
Thanks,
Tathagat
-----------------------------------------------------------
First Frame (1) |
--------------------
| Second Frame (1-2)
Second Frame (1-1)
|
|
|
|
|