Nick, bless you! Response.end() is the answer.
Mark Rae, in a different thread is saying that this technique of pumping
script into html is a bad thing. Unfortunately, I don't know any other way
to get the window closed from codebehind. Is there some other technique? He
suggests registering a client script, but that begs the question; how to
call the script from codebehind?
Jeremy
> try putting Response.End after it
>
[quoted text clipped - 19 lines]
>>
>> Jeremy
Jon Gonzales - 22 Nov 2007 03:12 GMT
This is the only way, always remember that manipulating windows occur in the
client side, hence the client side script is use to meet this requirements.
> Nick, bless you! Response.end() is the answer.
>
[quoted text clipped - 29 lines]
> >>
> >> Jeremy
Nick Chan - 22 Nov 2007 03:31 GMT
it is very odd that in your case response.write without response.end
wont work
maybe it has something to do with login control
if response.write without response.end wont work, i doubt registering
client script will
anyway, to register client script :
Page.ClientScript.RegisterStartupScript(Page.GetType,
"scriptName_FreeText", "<script type=""text/javascript"">close()</
script>")
(or RegisterClientScript, i think!)
> Nick, bless you! Response.end() is the answer.
>
[quoted text clipped - 31 lines]
>
> - Show quoted text -