c# - JavaScript critical error at line 135, column 158 in http://localhost:31424/Default.aspx SCRIPT1006: Expected ')' -
scriptmanager.registerstartupscript(page, this.gettype(), "jscript", "alert('this browser not supported on website. please use either latest version of chrome or mozilla firefox. click here download<a href='~/checkbrowser.aspx'>download</a>');", true); alert('this browser not supported on website. please use either latest version of chrome or mozilla firefox. click here download<a href='~/checkbrowser.aspx'>download</a>');(function() {var fn = function() {$get("ctl08_hiddenfield").value = '';sys.application.remove_init(fn);};sys.application.add_init(fn);})();//]]> **javascript critical error @ line 135, column 158 in http://localhost:31424/default.aspx script1006: expected ')'**
i getting error can't figure out error is
you need escape quote :
scriptmanager.registerstartupscript(page, this.gettype(), "jscript", "alert('this browser not supported on website. please use either latest version of chrome or mozilla firefox. click here download<a href=\'~/checkbrowser.aspx\'>download</a>');", true); alert('this browser not supported on website. please use either latest version of chrome or mozilla firefox. click here download<a href=\'~/checkbrowser.aspx\'>download</a>');(function() {var fn = function() {$get("ctl08_hiddenfield").value = '';sys.application.remove_init(fn);};sys.application.add_init(fn);})();//]]>
Comments
Post a Comment