Click here to Skip to main content
15,909,953 members
Home / Discussions / C#
   

C#

 
AnswerRe: Using ADOX in C#... code samples? Pin
Ravi Bhavnani6-Sep-06 1:17
professionalRavi Bhavnani6-Sep-06 1:17 
GeneralRe: Using ADOX in C#... code samples? Pin
myNameIsRon6-Sep-06 15:11
myNameIsRon6-Sep-06 15:11 
QuestionWeb browser problem Pin
Lord Jónsson5-Sep-06 20:16
Lord Jónsson5-Sep-06 20:16 
QuestionAssociating Files to a particular exe.. Pin
Rohit Dev5-Sep-06 19:59
Rohit Dev5-Sep-06 19:59 
AnswerRe: Associating Files to a particular exe.. Pin
Andrei Ungureanu5-Sep-06 20:22
Andrei Ungureanu5-Sep-06 20:22 
AnswerRe: Associating Files to a particular exe.. Pin
Nader Elshehabi6-Sep-06 0:01
Nader Elshehabi6-Sep-06 0:01 
AnswerRe: Associating Files to a particular exe.. Pin
Ravi Bhavnani6-Sep-06 1:22
professionalRavi Bhavnani6-Sep-06 1:22 
Questionproblem on capturing the browser close event Pin
gtechrohit5-Sep-06 19:51
gtechrohit5-Sep-06 19:51 
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 server 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
QuestionImage position in PictureBox? Pin
kbalias5-Sep-06 18:50
kbalias5-Sep-06 18:50 
AnswerRe: Image position in PictureBox? Pin
Andrei Ungureanu5-Sep-06 20:25
Andrei Ungureanu5-Sep-06 20:25 
QuestionCreating .exe file Pin
Max Gamer5-Sep-06 18:04
Max Gamer5-Sep-06 18:04 
AnswerRe: Creating .exe file Pin
Niiiissssshhhhhuuuuu5-Sep-06 19:38
Niiiissssshhhhhuuuuu5-Sep-06 19:38 
AnswerRe: Creating .exe file Pin
Corinna John5-Sep-06 20:12
Corinna John5-Sep-06 20:12 
AnswerRe: Creating .exe file Pin
Lord Jónsson5-Sep-06 20:18
Lord Jónsson5-Sep-06 20:18 
GeneralRe: Creating .exe file Pin
Max Gamer6-Sep-06 3:45
Max Gamer6-Sep-06 3:45 
Question.mp3 in to Byte Stream [modified] Pin
Niiiissssshhhhhuuuuu5-Sep-06 17:56
Niiiissssshhhhhuuuuu5-Sep-06 17:56 
AnswerRe: .mp3 in to Byte Stream Pin
Andrei Ungureanu5-Sep-06 20:31
Andrei Ungureanu5-Sep-06 20:31 
GeneralRe: .mp3 in to Byte Stream Pin
Niiiissssshhhhhuuuuu6-Sep-06 17:37
Niiiissssshhhhhuuuuu6-Sep-06 17:37 
GeneralRe: .mp3 in to Byte Stream Pin
Andrei Ungureanu6-Sep-06 19:50
Andrei Ungureanu6-Sep-06 19:50 
QuestionAdding a search to a toolstrip Pin
monrobot135-Sep-06 17:46
monrobot135-Sep-06 17:46 
Questionforms skins Pin
Mohammed Elkholy5-Sep-06 12:18
Mohammed Elkholy5-Sep-06 12:18 
AnswerRe: forms skins Pin
Nader Elshehabi5-Sep-06 12:28
Nader Elshehabi5-Sep-06 12:28 
QuestionAdvanced file properties Pin
HahnTech5-Sep-06 12:11
HahnTech5-Sep-06 12:11 
AnswerRe: Advanced file properties Pin
Nader Elshehabi5-Sep-06 12:40
Nader Elshehabi5-Sep-06 12:40 
GeneralRe: Advanced file properties Pin
HahnTech5-Sep-06 13:10
HahnTech5-Sep-06 13:10 

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.