exit button
-
zaimah wrote:
what is JS
JS is Java Script
zaimah wrote:
Response.Close()
Looks like you are not aware of how an ASP.NET page works.
Response.Close()
closes the connection to the client, not browser window. This executes on the sever. Java scipt executes on the client machine. To close a window from ASP.NET, you need to emit JS to the response.All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
-
yup, i'm not familliar with ASP.Net, just started a month ago. but i try to use window.close() as suggested, but there's a msg stated "windos not declared". why is it? sorry my english not so good.
<script language="javascript">
function closeWindow(){
window.close();
}
</script>I guess you wrote it on the code behind. Write it in the ASPX page inside
head
section. Call this from the control to close window.All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
-
<script language="javascript">
function closeWindow(){
window.close();
}
</script>I guess you wrote it on the code behind. Write it in the ASPX page inside
head
section. Call this from the control to close window.All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
use this line on your exit button click event. Response.Write("<script language='javascript'> { self.close() }</script>");
-
If the window is opened by a JS, it is possible.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
u might have heard about the monster.com website , there , the moment u update ur resume , there u can close the window by the button click , and without noticing the user !
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
modified on Wednesday, March 5, 2008 2:35 AM
-
No - the web is not a friendly enough place for browsers to allow that sort of thing.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
u might have heard about the monster.com website , there , the moment u update ur resume , there u can close the window by the button click , and without noticing the user !!!!!!
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
modified on Wednesday, March 5, 2008 2:35 AM
-
u might have heard about the monster.com website , there , the moment u update ur resume , there u can close the window by the button click , and without noticing the user !
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
modified on Wednesday, March 5, 2008 2:35 AM
-
i am also looking the same.:)
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
-
u might have heard about the monster.com website , there , the moment u update ur resume , there u can close the window by the button click , and without noticing the user !!!!!!
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
modified on Wednesday, March 5, 2008 2:35 AM
If your script had opened a window, you have the rights to close it through window.close() without requesting permissions from the user. Otherwise, the web browser is obliged to get a nod from the user whether to accede to your request.
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson -
If your script had opened a window, you have the rights to close it through window.close() without requesting permissions from the user. Otherwise, the web browser is obliged to get a nod from the user whether to accede to your request.
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinsoncan u elaborate this process of closing the window without user permissions?
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
-
i am also looking the same.:)
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
-
can u elaborate this process of closing the window without user permissions?
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
-
What he is trying to tell is if the window has been opened through Javascript then you will not be asked for the permission otherwise confirmation box will appear.
Apurva Kaushal
window is opening through aspx page , still is does not ask the user confirmation , in the monster.com website , while u click the update button , to update the resume.
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
-
i am also looking the same.:)
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
Sonia Gupta wrote:
i am also looking the same.
:doh: As I said, if the window is opened by a JS, then you can close it without any confirmation message. When JS is not the owner of the window, usually browsers will show a message to prevent unwanted scripts closing the window.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
-
Sonia Gupta wrote:
i am also looking the same.
:doh: As I said, if the window is opened by a JS, then you can close it without any confirmation message. When JS is not the owner of the window, usually browsers will show a message to prevent unwanted scripts closing the window.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
if u visit the monster.com , there click the update button, the pop up window will open , there u can close the window on button click . U many not require to upload the resume :) , but u can see the window is opening through aspx page .Still not asking my confirmation !!
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
-
if u visit the monster.com , there click the update button, the pop up window will open , there u can close the window on button click . U many not require to upload the resume :) , but u can see the window is opening through aspx page .Still not asking my confirmation !!
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
Sonia Gupta wrote:
if u visit the monster.com , there click the update button, the pop up window will open
OMG, this is what I am telling, the window is opened by a script, so it has permission to close the window without waiting for the confirmation from user. You try to open a window using
Window.Open
and close it using JS, you won't get any confirmation.All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
-
Have u tried this thing.. function Close_Window() { window.opener="something"; window.close(); } just call the function on the button click <div class="ForumSig">When you fail to plan, you are planning to fail.</div>