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.1
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 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 Display Modes
  #1 (permalink)  
Old November 15th, 2004, 12:10 PM
Friend of Wrox
 
Join Date: Nov 2003
Location: , NJ, USA.
Posts: 1,346
Thanks: 0
Thanked 5 Times in 5 Posts
Default JavaScript in ASP.NET

Hello all,

   I am re-writing a page from ASP to ASP.NET. There is some javascript in the original page that uses the onBeforUnload event. I need this functionality also in my new page. In the orginal page I have this code in a javascript event:
window.opener.location = 'CancelCallFromCallBox.asp';
This page runs a SQL Update command. I also need my new page to do this. However when I include the same coded above in my .aspx page, it does not redirect to my the "cancel" page (which is also now in .NET). Does anyone know why or give me a better idea on how to handle the problem

Basically I want to run a SQL Update if the user cancels by pressing a button(code is easy in code behind), OR, and most importanly , if they click on the "x" to close the window.

Dose anyone have some good coding ideas? Any help would be appreciated!

Thanks in advance!!!

Jim Benson

 


Thread Tools
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
ASP.Net 2.0 and JavaScript zion22 Javascript How-To 0 September 28th, 2006 01:28 PM
asp.Net 2.0 and JavaScript zion22 ASP.NET 2.0 Professional 0 September 28th, 2006 01:10 PM
javascript in asp.net Komila Generics 0 August 3rd, 2006 01:24 AM
javascript to asp.net bimboypogi ASP.NET 1.0 and 1.1 Professional 2 March 21st, 2005 01:49 AM



All times are GMT -4. The time now is 12:42 PM.


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