I have the following JavaScript code as a string literal:
var $Page = new function() { var _url= 'http://www.some.url.com'; this.Download = function() { window.location = _url; } }
Is there a way to get the value of the _url variable from my C # code? Perhaps an open source library? I did this using regex, but I was hoping for a more elegant way.
Igal tabachnik
source share