Click here to Skip to main content
15,902,938 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow to create dynamic text boxes in asp.net using C#.net Pin
attalurisubbu3-Jul-07 18:20
attalurisubbu3-Jul-07 18:20 
AnswerRe: How to create dynamic text boxes in asp.net using C#.net Pin
Sathesh Sakthivel3-Jul-07 18:32
Sathesh Sakthivel3-Jul-07 18:32 
QuestionHow to capture event when user is closing the Browser [modified] Pin
mangrovecm3-Jul-07 17:05
mangrovecm3-Jul-07 17:05 
AnswerRe: How to capture event when user is closing the Browser Pin
Aleksandr713-Jul-07 17:23
Aleksandr713-Jul-07 17:23 
GeneralRe: How to capture event when user is closing the Browser [modified] Pin
mangrovecm3-Jul-07 18:01
mangrovecm3-Jul-07 18:01 
GeneralRe: How to capture event when user is closing the Browser Pin
Michael Sync3-Jul-07 19:51
Michael Sync3-Jul-07 19:51 
QuestionCrystal Report Pin
isaii3-Jul-07 16:51
isaii3-Jul-07 16:51 
QuestionHow to display a message when user is closing the Browser Pin
mangrovecm3-Jul-07 15:34
mangrovecm3-Jul-07 15:34 
I have a code:



var UNLOAD_MSG = "You will lose any unsaved changes!";

var IGNORE_UNLOAD = true;

function doBeforeUnload()
{
if(IGNORE_UNLOAD) return; // Let the page unload

if(window.event)
window.event.returnValue = UNLOAD_MSG; // IE
else
return UNLOAD_MSG; // FX
}

if(window.body)
window.body.onbeforeunload = doBeforeUnload; // IE
else
window.onbeforeunload = doBeforeUnload; // FX




function CheckOrder(isChanges)
{
IGNORE_UNLOAD = isChanges;
}








The code above will confirm user whenever they try to exit a page if value of GetStatus() function is 'false'.
Actually problem the user has still not exit browser, they link to other pages
in the website but they always receive the message "You will lose any unsaved changes!". So I only want display a message when user is closing the Browser (Click "X" button).

Thank in advance.


vtkiet05

AnswerRe: How to display a message when user is closing the Browser Pin
Michael Sync3-Jul-07 17:00
Michael Sync3-Jul-07 17:00 
QuestionRe: How to display a message when user is closing the Browser Pin
mangrovecm3-Jul-07 17:23
mangrovecm3-Jul-07 17:23 
AnswerRe: How to display a message when user is closing the Browser Pin
Michael Sync3-Jul-07 17:37
Michael Sync3-Jul-07 17:37 
GeneralRe: How to display a message when user is closing the Browser Pin
mangrovecm3-Jul-07 18:06
mangrovecm3-Jul-07 18:06 
GeneralRe: How to display a message when user is closing the Browser Pin
N a v a n e e t h3-Jul-07 18:09
N a v a n e e t h3-Jul-07 18:09 
GeneralRe: How to display a message when user is closing the Browser Pin
mangrovecm3-Jul-07 18:24
mangrovecm3-Jul-07 18:24 
GeneralRe: How to display a message when user is closing the Browser Pin
Michael Sync3-Jul-07 20:15
Michael Sync3-Jul-07 20:15 
GeneralRe: How to display a message when user is closing the Browser Pin
mangrovecm4-Jul-07 17:54
mangrovecm4-Jul-07 17:54 
Questionwhere do I find DefaultClientScript property Pin
GuildfordG3-Jul-07 14:31
GuildfordG3-Jul-07 14:31 
AnswerRe: where do I find DefaultClientScript property Pin
Michael Sync3-Jul-07 17:06
Michael Sync3-Jul-07 17:06 
GeneralRe: where do I find DefaultClientScript property Pin
GuildfordG3-Jul-07 22:32
GuildfordG3-Jul-07 22:32 
GeneralRe: where do I find DefaultClientScript property Pin
Michael Sync3-Jul-07 23:03
Michael Sync3-Jul-07 23:03 
GeneralRe: where do I find DefaultClientScript property Pin
GuildfordG4-Jul-07 15:06
GuildfordG4-Jul-07 15:06 
QuestionSetting Button and Textbox focus Pin
devil853-Jul-07 10:53
devil853-Jul-07 10:53 
AnswerRe: Setting Button and Textbox focus Pin
RepliCrux3-Jul-07 13:32
RepliCrux3-Jul-07 13:32 
AnswerRe: Setting Button and Textbox focus Pin
sidbaruah3-Jul-07 18:56
sidbaruah3-Jul-07 18:56 
AnswerRe: Setting Button and Textbox focus Pin
Fred_Smith4-Jul-07 10:50
Fred_Smith4-Jul-07 10:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.