how do i "close" the current window when clicking a button?
ps. i am using code behind an aspx file (aspx.vb)
Printable View
how do i "close" the current window when clicking a button?
ps. i am using code behind an aspx file (aspx.vb)
use client side javascript's window.close
how ? :confused:
<input type="button" value="click Me" onclick="javascript: window.close;"/>
does this work for an "asp:button" ?
asp: button is for server side code. you need client side code.
i also want to perform these when clicking the button
Dim aw As New AppSettinsWriter()
aw.SetValue("conSystemStatus.ConnectionString", "Data Source=" & txtDBServer.Text & ";Integrated Security=SSPI;Initial Catalog=SystemStatus")