"If at first you don't succeed; call it version 1.0" :-Unknown

Pages

Wednesday, May 12, 2010

Close window on button click in ASP.NET

 hi eveybody,
last i c on feed burner that on button clik they are closing the window(browser tab) that i opened.with the help of my friend i got that here it comes
On button click
  Response.Write("")
On the Page Load event
cancelButton.Attributes.Add("onclick", "window.close();")

 Have a nice day... 'N happy Coding :)
Firefox For DummiesDon't Click on the Blue E!: Switching to FirefoxProgramming Firefox

No comments: