Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
blob
Starting Member
16 Posts |
Posted - 2006-03-31 : 07:57:47
|
Hi Initially,the user is not permitted to close his/her window.can anyone plz tell me some way to allow the user to close the window..ie,in someevent,i should make the user to close the window by asking a confirmation message "Do u want to exit?yes,No"...Can anybody plz suggest some idea about the event inwhich i can handle this.can anyone plz help me with the javascript or asp.net code to close the window too..Any suggestions are greatly appreciated..Thanks in advance..Regardsblob |
|
Srinika
Master Smack Fu Yak Hacker
1378 Posts |
Posted - 2006-03-31 : 08:49:28
|
Blob, u may better try this in a forum like CodeGuru or some Java Script forum. Here, mostly dealt with SQL server - ASP.Net - ADO.Net related issues.Srinika |
 |
|
blob
Starting Member
16 Posts |
Posted - 2006-03-31 : 09:06:38
|
Thank you Srinika..I will try in some javascript forums.. |
 |
|
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2006-03-31 : 09:30:45
|
what window are you talking about? IE?there is window.close()Go with the flow & have fun! Else fight the flow Blog thingie: [URL="http://weblogs.sqlteam.com/mladenp"] |
 |
|
jsmith8858
Dr. Cross Join
7423 Posts |
Posted - 2006-03-31 : 10:24:07
|
Also, check what events are available for the window object. |
 |
|
sachinsqldb
Starting Member
8 Posts |
Posted - 2006-04-11 : 06:39:55
|
You can always put an html button control in your asp.net page and add javascript attributes like <input id="button1" OnClick="window.close();">That's all that is needed for the window to closeRegards,Sachin |
 |
|
Srinika
Master Smack Fu Yak Hacker
1378 Posts |
Posted - 2006-04-11 : 08:10:08
|
Sachin,Isn't it be<input type="submit" value="Close" id="Close" Name ="Close" OnClick="window.close();"> Otherwise, it defaults to a text box (not a button)Srinika |
 |
|
sachinsqldb
Starting Member
8 Posts |
Posted - 2006-04-12 : 02:48:50
|
Hi Srinika,lol...this is what happens when one becomes too much dependent on IDEs and forget the actual hand coding. Yes it is true that the actual coding is the one you mentioned but who does hand coding particularly HTML in this age of VS.Net 2005, though, I just wanted to be clearer on the javascript that is used not the HTML. Anyways I am glad if I was able to make my point clear.Happy Coding,Sachin |
 |
|
|
|
|
|
|