Asp.net Code To Close Window - Asp.net

How to close window from codebehind asp.net?

Snippet Code


  
Rate this page :
  [ 0 votes]

Here, the asp.net code allows you to close the window from codebehind asp.net. By calling on the ScriptManager or page you can able to close the window.

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click ScriptManager.RegisterClientScriptBlock(Page, GetType(Page), "close", "window.close();", True) End Sub

Tags


Ask Questions

Ask Question