After reading the previous posts, I have a question about this:
<asp:Button ID="Button2" runat="server" Text="Button" OnclientClick = "close_window();" />
<script type="text/javascript">
function close_window()
{window.close();}
</script>
As Button2 is clicked, can some code behind (say a stored proc query) be run before close_window()? Please advise how. Thanks.