Thanks,
Well...I do have error reporting enabled for jscript but I get no error.
Here is my VB.NET code...which again has been working like a champ for years
on ASP1.1. Its also my understanding as well that the older (deprecated sig)
for this method should still work. I don't use VS2005 yet...so I am not
planning on having to change the code specific to 2.0 (I can change the
jscript if for some reason it is now the culprit...but don't know why).
Again...this app was simply copy deployed to the new box.
Dim strjscript As String = "<script language=""javascript"">"
txttotal.Text = CStr(dcTotal)
strjscript = strjscript & "window.opener.setEstimate("
strjscript = strjscript & txtBidHeader.Text & ", "
strjscript = strjscript & dcTotal & ", "
strjscript = strjscript & "'" & strDescription & "'"
strjscript = strjscript & ");window.close();"
strjscript = strjscript & "</script>"
Page.RegisterClientScriptBlock("", strjscript)
--
---------------------------------------
Jackson-Reed, Inc.
www.jacksonreed.com
"Göran Andersson" wrote:
Paul Reed wrote:
Hello,
I have an app that was xcopy deployed from an ASP.NET 1.1 W2KServer to a box
running ASP.NET 2.0 W2003Server. The app runs fine with the exception of
where I use the above method. It just doesn't seem to work at all anymore. I
get no errors...but what used to work...now just doesn't work.
I use it to emit jscript from an opened window to reflect changes being made
back on the parent window that launched it.
Any ideas?
The Page.RegisterClientScriptBlock method has been deprecated in favor
of the Page.ClientScript.RegisterClientScriptBlock method.
It still works, though. It's more likely that there is something wrong
with the Javascript code. Have you enabled Javascript error messages in
Internet Explorer? Otherwise they will just show up as a notification in
the status bar. If you are using Firefox, open the Error Console to see
the error messages.
--
Göran Andersson
_____
http://www.guffa.com