This is a migrated thread and some comments may be shown as answers.

how to pass the value dynamically to the controller

1 Answer 54 Views
ListView
This is a migrated thread and some comments may be shown as answers.
charan
Top achievements
Rank 1
charan asked on 07 Jun 2012, 07:37 AM
hi,
To display the image in the list view dynamically,
in the view i used the image tag like:<img src="@Url.Action("GetImage/${ID}", "Home")"  alt = "${name} image" />
how can i pass this value dynamically to the controller and the url is not identifying the special characters.

1 Answer, 1 is accepted

Sort by
0
Sim
Top achievements
Rank 1
answered on 03 Jul 2012, 03:20 PM
hi,
have you figure out this one already? because i kind of have the same problem.  though, i got mine working with <img src='http://localhost:8080/?????????/addOn/getImage/#=id#' alt="#=name# image"/> (passing id to action getImage in addOn controller).

I am seeking to pass the id somewhat like ${controller: ..., action:...., params...} but i couldnt get it to work.  the ${...} is not working but the #=...# does in this listView, in mine at least.

any help would be much appreciated. thank you.
Tags
ListView
Asked by
charan
Top achievements
Rank 1
Answers by
Sim
Top achievements
Rank 1
Share this question
or