This was great, and worked very well. Now I have another problem. I have a
server side button that needs to do some preperation and afterwards, if
everything goes well, open a new browser with a specific url.
Your responses showed me how to execute javascript from a server side
control, adding the javascript to the attributes. That addressed the problem
that I had. Now I have another. I need to open the browser window AFTER the
code behind event is finished, and even then only in the case that the event
finished successfully.
So, is there any way to accomplish this?
--
----------------------------------------
Magic is not in the hands of the magician but in the mind of the audience.
Animadverto est verus
"Denny Boynton" wrote:
Rik,
Here's a reference site where you can find the syntax for the
window.open() JavaScript method:
http://www.javascripter.net/faq/openinga.htm
Also, if you intend to open the new window from an ASP.NET server
control, you'll need to reference the JavaScript function in the
Attributes collection of the server control in order to make it fire
correctly from the client-side script.
HTH
Thanks,
Denny Boynton