I am developing a Web Based Navigation app using Bing Maps and ASP MvC, and I found as well as being able to create a route in the view using JavaScript, it is possible to create a route in the C# controller using the Bing Maps Rest Toolkit, and then pass it over. However, I have been unable to find
Tag: asp.net-mvc-4
MVC DropDownList onchange event with value
I’m pretty new to MVC and i’m trying to determine the value of a DropDownList when the value is changed. At the moment the val variable being passed to my javascript function is always ‘undefined’. I’ve googled for the solution and everywhere says to do exactly what i’m doing right now. What am i doing wrong? cshtml: And my javascript:
Razor MVC Populating Javascript array with Model Array
I’m trying to load a JavaScript array with an array from my model. Its seems to me that this should be possible. Neither of the below ways work. Cannot create a JavaScript loop and increment through Model Array with JavaScript variable Cannot create a Razor loop, JavaScript is out of scope I can get it to work with But I