I have the following:
var root = '<%=ResolveUrl("~/")%>';
And I am trying to do the same with Razor:
var root = '@ResolveUrl("~/")';
But I keep having the error:
Compiler Error Message: CS0103: The name 'ResolveUrl' does not exist in the current context
What am I doing wrong?
View Complete Post