Click here to Skip to main content
13,703,265 members
Rate this:
 
Please Sign up or sign in to vote.
I wont to display image from path or folder when I was select value from DropDownList in asp.net mvc

What I have tried:

@Html.DropDownListFor(model => model.LogoId, (IEnumerable<SelectListItem>)ViewBag.LogoList, "Select Logo " , new { @class = "form-control", @placeholder = "Select Logo" } )
                       @Html.ValidationMessageFor(model => model.LogoId, "", new { @class = "text-danger" })
                       <img src="~/Content/Logos/@Html.DisplayFor(model =>model.LogoId)" id="LogoImage" style="height:200px;width:200px;" />
Posted 4 days ago

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web01-2016 | 2.8.180920.1 | Last Updated 16 Sep 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100