Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Professional
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 26th, 2007, 03:06 AM
Registered User
 
Join Date: Jun 2007
Location: , , .
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


  #2 (permalink)  
Old June 28th, 2007, 04:05 AM
Friend of Wrox
Points: 1,935, Level: 17
Points: 1,935, Level: 17 Points: 1,935, Level: 17 Points: 1,935, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2004
Location: United Kingdom
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.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 01:59 PM.


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