user2291535
user2291535

Reputation:

Images Not working

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 ?

Upvotes: 1

Views: 99

Answers (1)

user2291535
user2291535

Reputation:

Now i am find it . I used @Url.Content it's worked

<img src="@Url.Content("~/Images/logo1.jpg")" />

Upvotes: 2

Related Questions