CodeWidgets.com Online Source Code Library -ASP, ASP.NET, VB, VB.Net, Microsoft® Access, Javascript, VBScript, Website Design, Web Applications, Custom Programming Services Available.

 CodeWidgets.com ASP, ASP.NET, VB, VB.Net,
Microsoft® Access, Javascript, VBScript,
Website Design, Web Applications
Shopping Cart (0) Items $0.00      
 CodeWidgets.com
CodeWidgets.com

 

Website Stats to Date

Pages Viewed 6,940,643
Visitors 1,664,751
Widgets Viewed 4,483,408
Since January 1/2003
 
 
Active Users: 27
 

 
PayPal: Secure online payments!
 
Widget #CS0076

Close window on Button Click (ASP.NET)

Close window on Button Click (ASP.NET)

Send Link

Questions

Currency Conv.
  Widget Info  
Clicking on button will close window.

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.Button1.Attributes.Add("OnClick", "self.close()")
End Sub
OR
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Response.Write("<script language='javascript'> { self.close() }</script>")
End Sub
 Licensing
Format: Plug & Play Code
Copy the Source Code Above..
Licencing Terms: PromoWare
Single Developer Licence.
Re-Distribution Permitted only as part of a compiled Application.This source code is provided to you "as is" without warranty.
CLICK HERE FOR TERMS OF USE
Copyright 2002-2006 Comrie Software Solutions
 Related Widgets

Add Sounds to button events. ASP.NET
DataBound Collapsible Menu (ASP.NET)
Display Current Time on Status Bar (Javascript)
Enable/Disable Server Controls using a For Each loop (ASP.NET)
Pop-Over Calendar WebUserControl (ASP.NET)
Popup Image upload form with Automatic thumbnails (ASP.NET)
Using a DataGrid as a bar graph (ASP.NET)

ShoppingCart Empty
Services Contact Info Legal Info
Designated trademarks and brand names are the property of their respective owners.

By accessing this website it is assumed that you agree to the TERMS OF USE.

Send questions or comments regarding this website to  Comrie Software Solutions.

Click here for a complete list of available Widgets.