I am new to ASP MVC and as part of learning i was developing a small map appliation.
below is the code snippet
<ul>
<script type="text/javascript">
@foreach (var item in Model){
@:AddLocationPin(@item.geo_lat, @item.geo_long, null, 'place 1');
}
</script>
</ul>
I expect the server to send to browse the something like following
<script type="text/javascript">
AddLocationPin(1.5,-2.9, null, 'place 1');
AddLocationPin(11.5,-12.9, null, 'place 1');
</script>
insted when I use Firebug on Firebfox I see the server sending the following
<script type="text/javascript">
</script>
could anyone of your help me as to what I am doing wrong ? excuse me if this is a very basic question.