how can I load the waypoint coordinates from Asp Label.Text
问题 First code in which i hardcore the value: <script type="text/javascript"> function myfunction() { var label3LatLng = document.getElementById('<%=TextBox1.ClientID%>').value; var label4LatLng = document.getElementById('<%=TextBox2.ClientID%>').value; L.Routing.control({ waypoints: [ L.latLng(21.5278654, 55.9196996), L.latLng(23.5278654, 55.9196996) ], routeWhileDragging: true, geocoder: L.Control.Geocoder.nominatim() }).addTo(map); } Output:[![Output with hardcore][1]][1] Code with textbox or