You don't have to do this in the code behind.
Just use client script.
I bet your problem i that you just wirte window.close() -- the frame is
considered to be a window and you can't close a frame, you'll have to close
the parent (browser) window.
I think this will work:
<script language="javascript">
function closeWindow()
{
self.parent.close();
}
</script>
<input type="button" onclick="closeWindow()" value="close">
cheers,
mortb
"RML" <RM*@discussions.microsoft.com> wrote in message
news:BC**********************************@microsof t.com...
Hi all,
I have an ASP.NET application that starts up with a HTML page containing 2
frames. The top frame is an aspx page with a "Close" button. The bottom
page is an aspx page which displays some data from an Access database.
I would like to close IE by pressing the close button in the top frame,
however I have not been able to to so. I have tried a Server side button
with "Response.End()" and a Client side bytton with Javascript
"window.close()".
Any suggestions?
Mark