title: Google Map API V3 : How to Add or Display InfoWindow() to Marker in CS page
body: <p><br> This my first question and I hope it's in correct formatting :)<br>
  I am trying to build application in ASP.NET,C# <br>which retrieve coordinate (Lat,Lon) from SQL and display it as markers (it's Done ) but when I try to add infowindow() to those markers the maps not showing 
  I need to display infowindw() to each marker <br> this is my code in CS page :</p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
  {
      string markers = GetMarkers();
      Literal1.Text = @"&lt;script type='text/javascript'&gt;
   function initialize() {
   var mapOptions = {
   center: new google.maps.LatLng(41.43242, -89.209343),
   zoom: 5,
   mapTypeId: google.maps.MapTypeId.ROADMAP
   };
   var image = new google.maps.MarkerImage('pic/marker.png', null, null, null, new google.maps.Size(30, 42));
   var myMap = new google.maps.Map(document.getElementById('mapArea'),
   mapOptions);"
  
  
  + markers + @"}
   &lt;/script&gt;";
  }
  
  protected string GetMarkers()
  {
      string markers = "";
      using (SqlConnection con = new SqlConnection("Data Source=localhost;Initial Catalog=web1;Integrated Security=True"))
      {
          SqlCommand cmd = new SqlCommand("SELECT Lat, Lan FROM Location", con);
          con.Open();
          SqlDataReader reader = cmd.ExecuteReader();
          int i = 0;
  
          while (reader.Read())
          {
              i++;
              markers +=
              @"var marker" + i.ToString() + @" = new google.maps.Marker({ icon: image,
              position: new google.maps.LatLng(" + reader["Lat"].ToString() + ", " +
              reader["Lan"].ToString() + ")," +
              @"map: myMap});";
          }
      }
      return markers;
  }
  </code></pre>