Click here to Skip to main content
15,914,162 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionJavascript Pin
Uma Kameswari5-Sep-06 18:58
Uma Kameswari5-Sep-06 18:58 
AnswerRe: Javascript Pin
Sathesh Sakthivel5-Sep-06 19:15
Sathesh Sakthivel5-Sep-06 19:15 
GeneralRe: Javascript Pin
Uma Kameswari5-Sep-06 23:46
Uma Kameswari5-Sep-06 23:46 
GeneralRe: Javascript [modified] Pin
g00fyman6-Sep-06 0:35
g00fyman6-Sep-06 0:35 
QuestionUsing WSE [modified] Pin
kjosh5-Sep-06 18:22
kjosh5-Sep-06 18:22 
AnswerRe: Using WSE Pin
Suresh Pirsquare5-Sep-06 23:41
Suresh Pirsquare5-Sep-06 23:41 
GeneralRe: Using WSE Pin
RichardGrimmer6-Sep-06 5:33
RichardGrimmer6-Sep-06 5:33 
QuestionSupress default message box of window [modified] Pin
gtechrohit5-Sep-06 18:01
gtechrohit5-Sep-06 18:01 
I need to capture the browser close event( when user clicks the 'X' button on top right) to confirm from the user if he wants to save the data on current page. I am able to capture the event by window.obeforeunload = ConfirmOnClose(this is name of function). Now when the user clicks on "Yes" to save the data, i use the method __doPostBack to call the method to save my information. The problem i am faced with now is that a Default Message Box of window also prompts up to ask the user
"Are you sure you want to navigate away from the page.

Press Ok to continue or Cancel to stay on the current page."

This message box is not needed and i want to supress it.

I have tried to do window.opener='', but that also doesnot help.
I am using Asp.net 2.0 environment.

I need it very urgent. All suggestions will be highly appreciated.

i am pasting the code for reference:

function ConfirmOnClose()
{
if(window.event.clientY < 0 && window.event.clientY < -80)
{
if(Page_ClientValidate())
{
var result = confirm("Do you want to save the data in the form?")
if(result)
{
__doPostBack('ibtn');
}
}
}
}
Rohit










-- modified at 1:32 Wednesday 6th September, 2006
QuestionDynamic multipage Pin
shivarishxxxx5-Sep-06 10:25
shivarishxxxx5-Sep-06 10:25 
Questionanatomy of a url Pin
PlNhead5-Sep-06 9:52
PlNhead5-Sep-06 9:52 
AnswerRe: anatomy of a url Pin
alexdresko5-Sep-06 16:35
alexdresko5-Sep-06 16:35 
GeneralRe: anatomy of a url Pin
PlNhead6-Sep-06 1:34
PlNhead6-Sep-06 1:34 
AnswerRe: anatomy of a url Pin
RichardGrimmer6-Sep-06 5:35
RichardGrimmer6-Sep-06 5:35 
QuestionWSE Pin
kjosh5-Sep-06 8:20
kjosh5-Sep-06 8:20 
AnswerRe: WSE Pin
minhpc_bk5-Sep-06 15:55
minhpc_bk5-Sep-06 15:55 
Questionthis exception Pin
abdelhameed815-Sep-06 6:31
abdelhameed815-Sep-06 6:31 
AnswerRe: this exception Pin
Guffa5-Sep-06 7:13
Guffa5-Sep-06 7:13 
GeneralRe: this exception Pin
Not Active5-Sep-06 7:49
mentorNot Active5-Sep-06 7:49 
AnswerRe: this exception Pin
Amit Agarrwal5-Sep-06 21:43
Amit Agarrwal5-Sep-06 21:43 
QuestionCookies in ASP.NET webfarm Pin
seee sharp5-Sep-06 5:36
seee sharp5-Sep-06 5:36 
QuestionUrgent help needed. Pin
Ifeoma5-Sep-06 4:14
Ifeoma5-Sep-06 4:14 
AnswerRe: Urgent help needed. Pin
Paddy Boyd5-Sep-06 5:47
Paddy Boyd5-Sep-06 5:47 
AnswerRe: Urgent help needed. Pin
Not Active5-Sep-06 7:34
mentorNot Active5-Sep-06 7:34 
Questionconditional inclusion of a namespace Pin
Suman Singh5-Sep-06 3:44
professionalSuman Singh5-Sep-06 3:44 
AnswerRe: conditional inclusion of a namespace Pin
minhpc_bk5-Sep-06 15:49
minhpc_bk5-Sep-06 15:49 

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.