hotwheelharry
08-06-2009, 03:10 AM
does anyone know how to put inline script into a html property, for example...
'<script type="text/javascript" src="<%=Eval("~/js/script.js");%>" ></script>'
this does not work when i run it.
I need the script source to pull script from the js folder in the app root because the page that this is running on is in 2 sub folders inside of app root.
That is why I was asking about "~" thing in urls, how can i use it inline?
'<script type="text/javascript" src="<%=Eval("~/js/script.js");%>" ></script>'
this does not work when i run it.
I need the script source to pull script from the js folder in the app root because the page that this is running on is in 2 sub folders inside of app root.
That is why I was asking about "~" thing in urls, how can i use it inline?