Click to See Complete Forum and Search --> : how do i "close" the current window when clicking a button?
tmashley
Nov 4th, 2002, 08:41 AM
how do i "close" the current window when clicking a button?
ps. i am using code behind an aspx file (aspx.vb)
Cander
Nov 4th, 2002, 08:50 AM
use client side javascript's window.close
tmashley
Nov 4th, 2002, 08:52 AM
how ? :confused:
Cander
Nov 4th, 2002, 08:54 AM
<input type="button" value="click Me" onclick="javascript: window.close;"/>
tmashley
Nov 4th, 2002, 09:23 AM
does this work for an "asp:button" ?
Cander
Nov 4th, 2002, 09:32 AM
asp: button is for server side code. you need client side code.
tmashley
Nov 4th, 2002, 09:53 AM
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")
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.