Click here to Skip to main content
16,011,905 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: RowEditing in gridview Pin
trilokharry4-Sep-08 23:16
trilokharry4-Sep-08 23:16 
QuestionHandling browser Close (X) button Pin
K V Sekhar4-Sep-08 21:01
K V Sekhar4-Sep-08 21:01 
AnswerRe: Handling browser Close (X) button Pin
Abhijit Jana4-Sep-08 21:37
professionalAbhijit Jana4-Sep-08 21:37 
GeneralRe: Handling browser Close (X) button Pin
K V Sekhar4-Sep-08 22:37
K V Sekhar4-Sep-08 22:37 
GeneralRe: Handling browser Close (X) button Pin
K V Sekhar4-Sep-08 23:13
K V Sekhar4-Sep-08 23:13 
GeneralRe: Handling browser Close (X) button Pin
Abhijit Jana4-Sep-08 23:30
professionalAbhijit Jana4-Sep-08 23:30 
GeneralRe: Handling browser Close (X) button Pin
K V Sekhar4-Sep-08 23:44
K V Sekhar4-Sep-08 23:44 
GeneralRe: Handling browser Close (X) button Pin
K V Sekhar5-Sep-08 1:01
K V Sekhar5-Sep-08 1:01 
I placed that method into script.js file.
I placed a break point on that method.
Its running when user closes the browser.
But the problem is when browser is closed, the value of 'Y' is -ve & 'X' is +ve.
So i modified the condition.

function UpdateDataBase()
{ // Check Browser Close [X] , Alt+F4 , File -> Close
if (window.event.clientX < 0 || window.event.clientY < 0)
{
window.open("DummyPage.aspx?test=test", "OpenWindow_Close_Session", 'left=12000,top=1200,width=10,height=1');
}
}
But even, the 'if' condition is true the control not going into the if block. Its coming out from function(like that condition fails).
I am bit surprized by looking this.
Why the control is not going inside 'if' block.

any help is appreciated,
thanks in advance.

cheers,
sekhar
GeneralRe: Handling browser Close (X) button Pin
Abhijit Jana5-Sep-08 1:21
professionalAbhijit Jana5-Sep-08 1:21 
GeneralRe: Handling browser Close (X) button Pin
K V Sekhar5-Sep-08 2:34
K V Sekhar5-Sep-08 2:34 
GeneralRe: Handling browser Close (X) button Pin
Abhijit Jana5-Sep-08 3:46
professionalAbhijit Jana5-Sep-08 3:46 
GeneralRe: Handling browser Close (X) button Pin
K V Sekhar5-Sep-08 18:43
K V Sekhar5-Sep-08 18:43 
GeneralRe: Handling browser Close (X) button Pin
K V Sekhar5-Sep-08 20:03
K V Sekhar5-Sep-08 20:03 
QuestionHandling browser &lt;- button Pin
K V Sekhar4-Sep-08 20:51
K V Sekhar4-Sep-08 20:51 
AnswerRe: Handling browser &lt;- button Pin
Blue_Boy4-Sep-08 21:00
Blue_Boy4-Sep-08 21:00 
GeneralRe: Handling browser &lt;- button [modified] Pin
K V Sekhar4-Sep-08 21:11
K V Sekhar4-Sep-08 21:11 
QuestionException Pin
trilokharry4-Sep-08 20:31
trilokharry4-Sep-08 20:31 
AnswerRe: Exception Pin
Blue_Boy4-Sep-08 20:41
Blue_Boy4-Sep-08 20:41 
QuestionHttp Response and Javascript Problem Pin
goradaranaresh4-Sep-08 20:30
goradaranaresh4-Sep-08 20:30 
QuestionException issue in grid view Pin
trilokharry4-Sep-08 19:43
trilokharry4-Sep-08 19:43 
Questionvalidation Pin
nithydurai4-Sep-08 19:23
nithydurai4-Sep-08 19:23 
QuestionPublish in .Net Pin
Member 45999724-Sep-08 19:22
Member 45999724-Sep-08 19:22 
AnswerRe: Publish in .Net Pin
Abhijit Jana4-Sep-08 19:41
professionalAbhijit Jana4-Sep-08 19:41 
GeneralRe: Publish in .Net Pin
Member 45999724-Sep-08 19:47
Member 45999724-Sep-08 19:47 
QuestionRe: Publish in .Net Pin
Abhijit Jana4-Sep-08 20:13
professionalAbhijit Jana4-Sep-08 20:13 

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.