Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7890207
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:17:42+00:00 2026-06-03T06:17:42+00:00

How to set image path dynamically for following: <img src=/Images/Model + @item.ModelImagePath /> /Images/Model

  • 0

How to set image path dynamically for following:

<img src="/Images/Model" + @item.ModelImagePath />

“/Images/Model” this path is fixed, rest of the path comes from [ModelImagePath] column of Model DBTable.

Please guide me how to set the path dynamically in View.

And is there any Html helper tag to display image available in MVC RZOR?

Note: i have similar type of problem as described in

How to use/pass hidden field value in ActionLink

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T06:17:44+00:00Added an answer on June 3, 2026 at 6:17 am
    <img src="@Url.Content(String.Format("~/Images/Model/{0}", item.ModelImagePath))"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

DECLARE @x xml SET @x='<data> <add key=images value=image/path/img.gif>a</add> <add key=images2 value=image/path/img2.gif >b</add> <add key=images3
Following shows how to manually set each href to the image path and set
Displaying an image from a remote server: <img src=http://remotehost/path/to/a.png alt=Image A /> However, if
I have something like this: <img class=side_image right id=side_image src=http://path/to/file_large.jpg width=300 height=210 onload=document.getElementById('loading_gif').style.display =
I'm trying to set an image as the background using this code: root.setStyle(-fx-background-image: url('splash.jpg');
i have set footer-image in print page by using this code. @media print {
Is it possible to set an image into motion along a predetermined path with
i have a simple JSON feed which returns an image path, and a set
FileSystemJournalListener not returning the newly captured image path. My camera saves images to sdcard/blackberry/pictures/...
I retrieve an image I have saved at the documents directory like this: //set

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.