09-14-2021, 06:18 AM
(This post was last modified: 09-14-2021, 06:19 AM by Alexandre Machado.)
We need an example. If the variable is already declared in the browser page context, you can just update the value of the variable, example:
This will update a variable named "link" declared previously somehwere in your page. Any javascript code that makes use of this link variable will get the updated content
Code:
WebApplication.CallBackResponse.AddJavaScriptToExecuteAsCDATA( 'link="c:\temp\test2.pdf";' );
This will update a variable named "link" declared previously somehwere in your page. Any javascript code that makes use of this link variable will get the updated content