Click here to Skip to main content
15,904,153 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi,
I am using MVC3.
I want to load the image dynamically from the database,for that
In the view i used the image tag like:
<img src="@Url.Action("GetImage/${ID}", "Home")"  alt = "${name} image" />

In the url action if i pass the static data like "GetImage/1" then it is displaying image corresponding to the ID = 1 image.but where as if i pass dynamically then it is not reflecting to the controller.
can u suggest me how to pass this value dynamically to the controller..
Posted
Updated 6-Jun-12 22:56pm
v2
Comments
member60 7-Jun-12 4:43am    
edit the tags to your question.

1 solution

please specifiy coorrect path of image...
 
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