In MVC view page javascript file url not resolving
Posted
by Ashwani K
on Stack Overflow
See other posts from Stack Overflow
or by Ashwani K
Published on 2010-05-20T05:29:33Z
Indexed on
2010/05/20
5:40 UTC
Read the original article
Hit count: 327
url
|asp.net-mvc
Hello All:
I have one MVC view page in which I show different links and I am using ThickBox to show a different page when ever one of these links is clicked. In these pages, I am using jQuery functions to do some changes, but I am not able to resolve the jquery file path on the view pages. I need to give absolute path something like "http://test.com/js/jquery.js". But is there any way to make it relative?
I also tried getting the host url and using <%=%> and <%# %> but none is working.
Any help?
Thanks Ashwani
© Stack Overflow or respective owner