Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:804884
More Search Options
RSS Available
Matching Posts
Re: [JS] Ask confirm to exit page with pending changes (onbeforeunload)
Yeah, I got it on my own!!! I don't know, whether it's the best way, but it works good: Here is my scriptcode: <script type="text/javascript"> var UNLOAD_MSG = "Ungespeicherte Daten gehen verloren!"; var IGNORE_UNLOAD = false; function doBeforeUnload() { var vChange = document.getElementById("ctl00_cphInhaltOR_hdCheckedChange").value; var strIsPostBack = theForm.__EVENTTARGET.value; if (IGNORE_UNLOAD == false) { if (strIsPostBack.length == 0) { if (vChange
Posted to
Tips & Tricks
(Forum)
by
bolle
on 6/2/2008
Filed under: JavaScript, asp.NET 2.0
Re: [JS] Ask confirm to exit page with pending changes (onbeforeunload)
Hey, first of all, sorry for my bad English. I hope you can understand, what I need ;) I have a ASP.NET Application with one page, where users can setup filter settings. I want to have such a message as described here, but it doesn't work correctly. If I add "IGNORE_UNLOAD = true" to the 'textChanged'- or 'checkedchanged'-Event I get the error, that thats not found. So I tried a work-around and did it in the vb-part. I have a invisible checkbox in my contentplaceHolder
Posted to
Tips & Tricks
(Forum)
by
bolle
on 6/2/2008
Filed under: asp.NET 2.0
Page 1 of 1 (2 items)
WindowsClient:
Windows Client Developer Roundup for 12/21/2009
Silverlight:
4 Calendars & Plans for 2010 / 5770
ASP.NET:
ASP.NET MVC 2 and Visual Studio 2010
ASP.NET:
Moving your ASP.NET Application to Windows Azure – Part II
Silverlight:
HVP – Core Scaffolding and Updated News
Channel 9:
TWC9: 2009 - The Year in Review
ASP.NET:
Tip#100: Did you know… How to view ASP.NET trace information?
ASP.NET:
Passing anonymous objects to MVC views and accessing them using dynamic
Channel 9:
Channel 9 Live at PDC09: Coding 4 Fun
Channel 9:
Channel 9 Live at PDC09: Stephen Toub
WindowsClient:
Mouse Gestures for Internet Explorer
Channel 9:
Controlling concurrency in Rx
Channel 9:
Dev Tools Ecosystem Summit Videos Available
WindowsClient:
Using Cerebrata's Cloud Storage Studio To Download IIS logs from Multiple Instances of Windows Azure
TechNet Edge:
TechNet Radio: Office 2007 Setup and Configuration (Part 1)
Channel 10:
How-To: Listen to Your Zune Pass Music on Your WinMo Phone
Channel 10:
Share Your Screen with SharedView
Channel 10:
Get Microsoft Tinker Game For Free
Channel 10:
LG eXpo WinMo 6.5 Unboxing Video
Channel 9:
ADFS 2.0 RC is Here!
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online