Ask a Question related to ASP.NET, Design and Development.
-
Steve #1
Close a window after button click
The user clicks a buuton and the server does some
processing. If successful I want to close the window.
Any suggestions?
Steve
Steve Guest
-
Open window on button click
Hi there, in a form, here's what I want to do : <input type=button onclick= (???) is it possible to open a pop-up window with a specified... -
close window component when open with button...
Hello, I can have a window component popup with actionscript and close just fine. When I have a button that opens the window rather than the window... -
want to open a new window on button click!-jscript or javasript
Hi all... I am able to select a student's story and open it in a word doc. the teacher then corrects the story, highlight in colors the comments,... -
Server control button click: open pop up browser window
Checkout ... ShowModalDialog in the javascript reference. It works quite will if you want to use client side javascript. "Alvin Bruney"... -
Button click on Web Dialog opens its copy in new window
I have an aspx page which I open using the following code fragment below. The modal web dialog has 2 buttons and whenever I click any of them, a new... -
Karl Seguin #2
Re: Close a window after button click
you could simply Response.Write the javascript to do a self.close() ala:
Response.Write ("<script language='javascript'>self.close();</script>")
A more elegant solution might be to use Page.RegisterStartupScript
Karl
"Steve" <stephendotholt@invudotnet> wrote in message
news:091a01c34077$efeb7fa0$a301280a@phx.gbl...> The user clicks a buuton and the server does some
> processing. If successful I want to close the window.
>
> Any suggestions?
>
>
> Steve
Karl Seguin Guest
-
Kevin Spencer #3
Re: Close a window after button click
Use Page.RegisterStartupScript() to add the following JavaScript to the
page:
window.opener = self;
window.close();
It will close as soon as it reloads after the PostBack.
HTH,
Kevin Spencer
Microsoft FrontPage MVP
Internet Developer
[url]http://www.takempis.com[/url]
Big things are made up of
lots of Little things.
"Steve" <stephendotholt@invudotnet> wrote in message
news:091a01c34077$efeb7fa0$a301280a@phx.gbl...> The user clicks a buuton and the server does some
> processing. If successful I want to close the window.
>
> Any suggestions?
>
>
> Steve
Kevin Spencer Guest



Reply With Quote

