M
Mike Strauss
Mission impossible?
I would like to click on a button on an aspx page, have that trigger a
section of code in the code behind, then depending of the results of the
code behind execution, execute a JavaScript.
The JavaScript I need to execute is a "window.open", but only if the results
of the code execute as expected.
I believe I could dynamically create the JavaScript in the code behind and
add it using RegisterStartupScript. That would allow me to conditinally
execute the JavaScript. In other words, I could simply add blank function
if I needed to not open the window.
However, how could I trigger it to execute on the button click after
executing a call back function?
Any ideas?
Thanks,
Scott
I would like to click on a button on an aspx page, have that trigger a
section of code in the code behind, then depending of the results of the
code behind execution, execute a JavaScript.
The JavaScript I need to execute is a "window.open", but only if the results
of the code execute as expected.
I believe I could dynamically create the JavaScript in the code behind and
add it using RegisterStartupScript. That would allow me to conditinally
execute the JavaScript. In other words, I could simply add blank function
if I needed to not open the window.
However, how could I trigger it to execute on the button click after
executing a call back function?
Any ideas?
Thanks,
Scott