Click here to Skip to main content
15,894,343 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I want to change image from resource file in multilingual website can anyone help me to achieve this in mvc 5.

What I have tried:

I am not able to share my code bcz i can't share my code outside office.Sorry for this
Posted
Updated 9-Feb-18 9:34am
Comments
Richard Deeming 9-Feb-18 12:22pm    
So you want us to help you fix your code without being able to see your code?

You don't need a programmer - you need a telepath!
David_Wimbley 9-Feb-18 13:25pm    
If you are unable to share your code then looks like you need to refer to google instead of forums.

1 solution

Hello ,

I have used the below approach to load image file from resource file,

Approach 1 :

[^]

Or

Approach 2: using ASP.Net MVC Razor component

@if(imagePath != ""){
<img src="@imagePath" alt="Sample Image" width="300px" />
}



if you already tried this approach, please let me know if you have any issues in that
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900