Hello all,
i have a variable named "_var" defined on the ScriptSide
when i write a script in the HTML page the _variable imports the value and everything is working great.
when i put those lines in a external JS file ("JSript.js") and import the file to the HTML pageCode:var _variable = "<%=_var %>"; alert(_variable);
the _var isn't reckognized, and _variable returns the string itself insted of the value.Code:<script src="JScript.js" type="text/javascript"></script>
What am i doing wrong?


Reply With Quote

Bookmarks