how can we close a web page in asp.net without using jscript?
Answers were Sorted based on User's Feedback
Answer / bon3less
protected void Button1_Click(object sender, EventArgs e)
{
Response.Write("<script language='javascript'> { window.close();}</script>");
}
| Is This Answer Correct ? | 63 Yes | 24 No |
Answer / shankar
<asp:Button ID="CloseButton" runat="server" Text="Close"
OnClientClick="javaScript:window.close(); return false;" />
| Is This Answer Correct ? | 73 Yes | 35 No |
Answer / raja raja cholan
First take the mouse and click the exit button in the right
corner of the browser.It will close automatically.
| Is This Answer Correct ? | 18 Yes | 23 No |
Answer / raj
All these code does not work for me. I have a manual answer.
In the keyboard give Alt+F4 for all the windows opened. It
will automatically close. then shutdown and sleep yar......
| Is This Answer Correct ? | 8 Yes | 18 No |
How we implement the paypal in my website and how we make a payment through Credit Card.
how to convert Dataset to Object Array or list in c# .net
Code for Sending E-Mail with System.Web.Mail?
Give coding for Exception Handling Techniques in ASP.NET?
what is the value that reside in a hidden field when no value is assigned to it?how it can be used in a if statement??
HOw to Build a Nested GridView Control with ASP.NET?
how to upload an excel in c# ASP.Net?
Common UI for Multiple web applications. Suppose there are 35 websites using same third party controls.These 3rd party controls are made together that all 35 websites can use these controls.If we put all 3rd party controls and use its dll in 35 websites,only class files will be accessable. But I want to use CSS,images also in all 35 websites. how I can design the N-tier solution for this project.
How to Export Data to Excel?
what is software testing
Code for Using Keyboard Events?
how to create a search bar which access data from various websites and retrieves the data