close the popup window
-
hi friends how to close the popup window from codebehind in .net regards saravan
Known Is Drop.Unknown Is Ocean
-
hi friends how to close the popup window from codebehind in .net regards saravan
Known Is Drop.Unknown Is Ocean
-
hi friends how to close the popup window from codebehind in .net regards saravan
Known Is Drop.Unknown Is Ocean
i think not possible as the pop window will come at the client side. Server does not know anything about the pop up window you need to do it client side and write a javascript for that
Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "
-
Page.ClientScript.RegisterClientScriptBlock( this.GetType() ,"ClosePopupScript" ,"window.close()" ,true); From the popup window page's code-behind.
Intelligence is measured by common sense not by how many scholarly books you read.
But its the javascript only you are only registring it from server
Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "
-
hi friends how to close the popup window from codebehind in .net regards saravan
Known Is Drop.Unknown Is Ocean
U can write down the script in codebehind like Response.write(""); Response.write("window.close();"); Response.write(""); Check out this code.. Regards Avesh
-
i think not possible as the pop window will come at the client side. Server does not know anything about the pop up window you need to do it client side and write a javascript for that
Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "
I think It's possible. Even if it's a pop-up window the page will run at the server-side. At the server-side there are way's to build javascript dynamically in the CodeBehind using
ClientScript.RegisterStartupScript, ClientScript.RegisterClientScriptInclude
.Regards
- J O N -
-
I think It's possible. Even if it's a pop-up window the page will run at the server-side. At the server-side there are way's to build javascript dynamically in the CodeBehind using
ClientScript.RegisterStartupScript, ClientScript.RegisterClientScriptInclude
.Regards
- J O N -
Yes i agree to some extent as we interpreted the quesition in differnt way . Just your post said that you can generate javascript dynamically yes very true but you can't close that pop up window from server side (code behind) as your script will run at client side you just registering it,not calling. It is going to execute at client side only
Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "
-
Yes i agree to some extent as we interpreted the quesition in differnt way . Just your post said that you can generate javascript dynamically yes very true but you can't close that pop up window from server side (code behind) as your script will run at client side you just registering it,not calling. It is going to execute at client side only
Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "
playing with bugs ) wrote:
but you can't close that pop up window from server side (code behind) as your script will run at client side you just registering it,not calling. It is going to execute at client side only
I interpreted your previous post in a different way. what you said here made it clear.
Regards
- J O N -