plz refer the foll code of default.aspx page:- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Untitled Page</title> <script language="javascript"> function hi() { window.close(); } </script> </head> <body> <form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server" /> <div> <asp:Button ID="Button1" runat="server" OnClientClick="javascript:hi()" Text="Submit" /></div> </form> </body> </html>
support synthesys
Posts
-
How to close a form after some server side action is finished. -
How to close a form after some server side action is finished.use javascript on that button click to close that form.
-
opening excel documentyes why not, we can open excel doc using asp.net , plz tell me ur detailed requirement so that i can help ypu out.
-
when stored procudere fire error how can i handle it?by using raiserror in stored procedure.
-
Page Request Manager Errorhello, While accessing the website at client side i am facing following errors:- 1. Sys.Forms.PageRequestManagerServerErrorException:An unknown error occured while processing the request on the server. The status code returned from the server was: 400 2. Sys.Forms.PageRequestManagerServerErrorException:An unknown error occured while processing the request on the server. The status code returned from the server was: 12152 I have tried so many options but finally i format the server and reconfigured it but still problem is still there. please help out, thanks in advance.