Hi Peter,
Welcome to Microsoft Newsgroup Service. Based on your problem description,
you've a frameset which has three frames(left,right top and right bottom).
There is a button in the right top frame's page and some entry fields in
the right bottom page, you want to let the datas to be saved( submit to the
serverside?) when the button in the right bottom frame is clicked?
If so , I think suggestion provided by Natty is good. You can write a
period of client javascript and when the button in the right top frame is
clicked, run the script and find the right bottom frame , then call the
form(in the right bottom frame's page) 's submit() method to post the data
to the serverside, For example:
suppose we 've a frameset page as:
<frameset id="fsleft" cols="20%,80%">
<frame name="left" src="SideMenu.aspx" scrolling="no" noresize
style="BACKGROUND-COLOR: #ffffcc">
<frameset id="fsright" rows="16%,84%">
<frame name="rtop" src="TopMenu.aspx">
<frame name="rbottom" src="MainScreen.aspx">
</frameset>
</frameset>
and in the TopMenu.aspx, there exists a button and we define a javascript
function to call the rbottom frame's page's submit() method:
........
<script language="javascript">
function SubmitBottomPage()
{
window.parent.frames['rbottom'].document.Form1.submit();
}
</script>
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<table width="500" align="center">
<tr>
<td><INPUT type="button" value="SubmitButtomPage"
onclick="SubmitBottomPage()"></td>
</tr>
</table>
</form>
</body>
Thus, when the button "SubmitButtomPage" is clicked, it'll call the
"SubmitBottomPage()" function and in that function,
we use window.parent.frames['rbottom'] to get the right bottom frame's page
and call it's document.Form1 element's submit method.
The MainScreen.aspx(the page in the "rbottom" frame) is like bellow:
..................
<body>
<form id="Form1" method="post" runat="server">
<table width="500" align="center">
<tr>
<td><FONT face="ËÎÌå">
<asp:TextBox id="TextBox1" runat="server"></asp:TextBox></FONT></td>
<td><FONT face="ËÎÌå">
<asp:TextBox id="TextBox2" runat="server"></asp:TextBox></FONT></td>
<td><FONT face="ËÎÌå">
<asp:TextBox id="TextBox3" runat="server"></asp:TextBox></FONT></td>
</tr>
</table>
</form>
</body>
When the page is submited, all the data is posted to the serverside, you
can retrieve them in the page's Page_Load event.
Please try the preceding suggestion and let me know whether they help,
Thanks.
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)