Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Professional
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 26th, 2007, 03:06 AM
Registered User
 
Join Date: Jun 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Adding Multiple Event to button in layered PopUp

Hi to all,

I have a layered Pop Up window, it has some text boxes and a save button, i want when user click Save Button,the record should be saved in DB(for this i have written a function that is called against onclick of the button), and window should be closed(for that i have written a function in javascript)
How i can add do this, I have tried to use button.attribute.Add("Onclick","javascript function"); but it also does not work, the latest event handler overwrite the old event handler.

Regards,
Saqlain Abbas


 
Old June 28th, 2007, 04:05 AM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 550
Thanks: 0
Thanked 1 Time in 1 Post
Default

Write the lines below after you save the values in DB

Response.Write("<script>");
Response.Write("self.close();");
Response.Write("</script>");

Regards
Mike

Don't expect too much, too soon.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Popup Button Selection sarashinai BOOK: Beginning Mac OS X Programming 0 April 23rd, 2008 08:53 AM
Adding two event to a button saqlain.abbas ASP.NET 1.0 and 1.1 Basics 1 June 26th, 2007 08:26 AM
How to open a popup when back button is pressed Vadivel Javascript How-To 1 May 12th, 2006 03:08 AM
Multiple event handlers for a single button monuindia2002 ASP.NET 1.0 and 1.1 Professional 1 October 16th, 2005 11:22 PM
Popup without X button? chrscote Javascript How-To 1 June 2nd, 2005 01:27 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.