Is there a way to pass a HashTable loaded with key/values to a page View in a way I can then use it via javascript/Jquery ?
Example: I have HashTable with
key = Car Model (206 XT), Value = "PEUGEOT", etc...............
So in the view I have a combo with all car models and near that, I have a textbox automatically populated with the manufacturer taken from javascript
Is there a way to do so ??
(I’m really noob in MVC 3 :()
There are different way to solve this problem:
if you wan’t to get this list dynamicaly with out reloading you can use a json request (examples).
Javascript:
Controler (c#):
Furthermore you can access every html-element from javascript. So you can put the content in all kinds of html-elements.