Wrox Programmer Forums
|
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 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 November 15th, 2004, 01:10 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
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






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 02:49 AM





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