Click here to Skip to main content
15,918,808 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: for best search results Pin
Sandeep Akhare3-Jul-07 20:11
Sandeep Akhare3-Jul-07 20:11 
Questiondatagrid Pin
musnet20073-Jul-07 19:20
musnet20073-Jul-07 19:20 
AnswerRe: datagrid Pin
Tamimi - Code3-Jul-07 19:34
Tamimi - Code3-Jul-07 19:34 
GeneralRe: datagrid Pin
musnet20073-Jul-07 20:12
musnet20073-Jul-07 20:12 
AnswerRe: datagrid Pin
Sathesh Sakthivel3-Jul-07 19:35
Sathesh Sakthivel3-Jul-07 19:35 
Questionhow to create control at runtime in ASP.NET using vb.net Pin
honeypk20@yahoo.com3-Jul-07 19:13
honeypk20@yahoo.com3-Jul-07 19:13 
AnswerRe: how to create control at runtime in ASP.NET using vb.net Pin
Tamimi - Code3-Jul-07 19:30
Tamimi - Code3-Jul-07 19:30 
QuestionStatus bar in windows 2003 Pin
Kanjinghat3-Jul-07 18:42
Kanjinghat3-Jul-07 18:42 
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 

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.