1

I have a MVC Project

Click this url :

http://epstechno.com/schoolbriefcase/

Then Click this url :

http://epstechno.com/schoolbriefcase/Account/Login

Must look above url difference .But it's gone same page

But when i put this http://epstechno.com/schoolbriefcase url, Why images are not shown ?

And the same problem in click this (pass query string ):

http://epstechno.com/schoolbriefcase/Discussion/ViewDiscussion/24

and then click this

http://epstechno.com/schoolbriefcase/Discussion/ViewDiscussion?id=24

when i put http://epstechno.com/schoolbriefcase/Discussion/ViewDiscussion/24 , Why Images are not shown ?

My Image path is

url('**../Images/sidecurve.png**')

But i have already tried ../../ and ~/ . But bad luck it's not working

Any one help me .

Update :

But When i put full url for

background: url('**http://epstechno.com/schoolbriefcase/Images/sidecurve.png**') repeat-y;

This time working .

What problem ?

4

1 回答 1

2

现在我找到了。我使用了@Url.Content 它的工作

<img src="@Url.Content("~/Images/logo1.jpg")" />
于 2013-04-24T08:05:11.757 回答