closing a window
The following code will close an open window upon a linkbutton click.
This code will ask you for a confirmation before closing the window:
lnkbtnClose.Attributes.Add("onclick", "return confirm('Are you sure you want to logout?')")
This code will automatically close the window upon clicking:
lnkbtnClose.Attributes.Add("onclick", "window.close();")