I want to call a JavaScript function in c# code in asp.net mvc3 view, but don\'t know how to do this. My code is following
Javascript Function
Well you can use something like this:
foreach (var item in collection) { }
If you need to use foreach inside the javascript code, you should just use . Like this: