title: how to cal javascript method in server side button control?
body: <pre><code>  function calcRoute() {
          var start = document.getElementById('start').value;
          var end = document.getElementById('end').value;
  
  
          var request = {
              origin: start,
              destination: end,
  
              travelMode: google.maps.TravelMode.DRIVING
          };
          directionsService.route(request, function(response, status) {
              if (status == google.maps.DirectionsStatus.OK) {
                  directionsDisplay.setDirections(response);
                  var route = response.routes[0];
                  var summaryPanel = document.getElementById('directions_panel');
                  summaryPanel.innerHTML = '';
                  // For each route, display summary information.
                  for (var i = 0; i &lt; route.legs.length; i++) {
                      var routeSegment = i + 1;
                      summaryPanel.innerHTML += '&lt;b&gt;Route Segment: ' + routeSegment + '&lt;/b&gt;&lt;br&gt;';
                      summaryPanel.innerHTML += route.legs[i].start_address + ' to ';
                      summaryPanel.innerHTML += route.legs[i].end_address + '&lt;br&gt;';
                      summaryPanel.innerHTML += route.legs[i].distance.text + '&lt;br&gt;&lt;br&gt;';
                  }
              }
          });
      }
  
      google.maps.event.addDomListener(window, 'load', initialize);
  </code></pre>
  
  <p>my button event is not fired...i want to shows the get directions using two dropdown list controls using server side controls but my button event is not fired ...wht i do?</p>
  
  <pre><code> &lt;asp:Button ID="btnsubmit" runat="server" OnClientClick="return calcRoute();" Text="Submit" /&gt;
  </code></pre>
  
  <p>how to cal javascript method into serverside...please tell me..</p>