I need to use ResolveUrl
in my javascript function.
How can I use it?
Note
In my javascript function I'm setting some images to show a message box. Since my pages are in different places(root, other folders) I need to use ResolveUrl.
Thanks
I need to use ResolveUrl
in my javascript function.
How can I use it?
Note
In my javascript function I'm setting some images to show a message box. Since my pages are in different places(root, other folders) I need to use ResolveUrl.
Thanks
Why don't you try adding '~/' before relative path?
var msgBoxImagePath = '<%= ResolveUrl("Images/MessageBox/") %>';
change to
var msgBoxImagePath = '<%=Page.ResolveUrl("~/Images/MessageBox/") %>';