Hello,
I want to close a window using an HTML Input file Control button.
First, I need to execute the btnClose_Click sub, then close the window.
After a click on the button, the window is successfuly closed but I never go through the btnClose_Click code.
Can you help me ?
Below is my code:
<script language="javascript">
<!---->
function Close_Window(){
window.close();
}
</script>
<form language="vb" id="Form1" method="post" encType="multipart/form-data" runat="server">
<input id="btnClose" type="submit" onserverclick="btnClose_click" onclick="Close_Window();" value="Close Window" name="btnClose" runat="server">
Code behind:
Public Sub btnClose_click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClose.ServerClick
End Sub
I want to close a window using an HTML Input file Control button.
First, I need to execute the btnClose_Click sub, then close the window.
After a click on the button, the window is successfuly closed but I never go through the btnClose_Click code.
Can you help me ?
Below is my code:
<script language="javascript">
<!---->
function Close_Window(){
window.close();
}
</script>
<form language="vb" id="Form1" method="post" encType="multipart/form-data" runat="server">
<input id="btnClose" type="submit" onserverclick="btnClose_click" onclick="Close_Window();" value="Close Window" name="btnClose" runat="server">
Code behind:
Public Sub btnClose_click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClose.ServerClick
End Sub