How to set the image path dynamically for the following:
<img src="/Images/Model" + @item.ModelImagePath />
"/ Images / Model" this path is fixed, the rest of the path comes from the column [ ModelImagePath ] Model DBTable.
Please indicate how to dynamically set the path in the view.
And is there an HTML helper tag for displaying an image available in MVC RZOR?
Note. I have a similar type of problem described in
How to use / pass hidden field value in ActionLink
<img src="@Url.Content(String.Format("~/Images/Model/{0}", item.ModelImagePath))"
If you already saved the entire path in the table, execute it
<img src="@Url.Content(String.Format("{0}",item.ModelImagePath))"/>
or
<img src="@Url.Content(item.ModelImagePath)" style="width:100px;height:100px"/>