How to display images that comes from database in mvc? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to display images that comes from database in mvc?

I am trying to make a blog. I have a content column in my database. I can add any text to my database. I can even use the HTML codes in my content with @Html.Raw. But I can't use img tag in it. I need to use @Url.Content(""),but I can't do that. And I need to upload the photo to my project. How can I use img tag in it?

8th Jan 2018, 3:04 PM
Yusuf
Yusuf - avatar
1 Answer
+ 1
With HTML Text Editor.
12th Jan 2018, 9:07 PM
Yusuf
Yusuf - avatar