title: url marker in google map api using ASP.NET MVC4
body: <p>I have a Map in my page and when the marker is clicked it goes to a action Ballon in the RptVendedorController that is like this, </p>
  
  <pre><code>public ActionResult Balloon( int id,string tipoPin , bool clienteCompleto)
  </code></pre>
  
  <p>for the url of the marker I create like this </p>
  
  <pre><code>Url.Action("Balloon", "RptVendedor", new { id = cliente.ClienteId, tipoPin = "clientes", clienteCompleto = true }) }
  </code></pre>
  
  <p>that give this in server side</p>
  
  <blockquote>
    <p>url:/RptVendedor/Balloon/4?tipoPin=clientes&amp;clienteCompleto=True</p>
  </blockquote>
  
  <p>My problem is that for some reason  the url change and when I click the marker this is the url that i get (is below) it add (amp;) so it not hit my action because it not have well format the clientecompleto in the Query string</p>
  
  <pre><code>Request URL:http://localhost:10657/RptVendedor/Balloon/4?tipoPin=clientes&amp;amp;clienteCompleto=True
  </code></pre>
  
  <p>and dont know the reason why it add the (amp;)?</p>
  
  <p>Edit</p>
  
  <p>i put to a viewModel</p>
  
  <pre><code>Globo = new MostrarMapaGlobo { Ancho = 400, Alto = 200, Url = Url.Action("Balloon", "RptVendedor", new { id = cliente.ClienteId, tipoPin = "clienteGeografico" }) }
  </code></pre>
  
  <p>and in a partial view </p>
  
  <pre><code>@foreach (var pin in Model.Pines)
          {
              &lt;text&gt;
              var marker = new google.maps.Marker({
                  position: new google.maps.LatLng(@pin.Posicion.Latitud, @pin.Posicion.Longitud),
                  map: map,
                  title: '@pin.AltText',
                  icon: new google.maps.MarkerImage('@Html.Raw(pin.Icono.Replace("[color]", pin.Color.Substring(1)))'),
                  @if (pin.Click)
                  {
                      @:clickable: true,
                  }
                  else
                  {
                      @:clickable: false,
                  }
                  @if(pin.Movil)
                  {
                      @:draggable: true,
                  }
                  else
                  {
                      @:draggable: false,
                  }
  
                  @if (!string.IsNullOrWhiteSpace(pin.Globo.Extras))
                  {
                      @pin.Globo.Extras@:,
                  }
                  ancho: '@pin.Globo.Ancho' + 'px',
                  alto: '@pin.Globo.Alto' + 'px',
                  url: '@pin.Globo.Url',
                  contenido: '@pin.Globo.Contenido'
              });
              oms.addMarker(marker);
              markers.push(marker);
              &lt;/text&gt;
                  if (Model.Ruta != null &amp;&amp; pin.Ruta)
                  {
                  @:posiciones.push(new google.maps.LatLng(@pin.Posicion.Latitud, @pin.Posicion.Longitud));                            
              }
          }   
  </code></pre>