Click here to Skip to main content
15,886,199 members
Home / Discussions / ASP.NET
   

ASP.NET

 
SuggestionRe: i got error in webconfig file Pin
Kornfeld Eliyahu Peter3-Nov-14 21:11
professionalKornfeld Eliyahu Peter3-Nov-14 21:11 
SuggestionRe: i got error in webconfig file Pin
Richard Deeming3-Nov-14 23:41
mveRichard Deeming3-Nov-14 23:41 
AnswerRe: i got error in webconfig file Pin
ZurdoDev5-Nov-14 2:18
professionalZurdoDev5-Nov-14 2:18 
Questionhow to extract the category and subcategory dynamically in navigation bar in asp.net Pin
aawajaarughat3-Nov-14 18:36
professionalaawajaarughat3-Nov-14 18:36 
QuestionRe: how to extract the category and subcategory dynamically in navigation bar in asp.net Pin
ZurdoDev5-Nov-14 2:18
professionalZurdoDev5-Nov-14 2:18 
AnswerRe: how to extract the category and subcategory dynamically in navigation bar in asp.net Pin
aawajaarughat5-Nov-14 17:48
professionalaawajaarughat5-Nov-14 17:48 
GeneralRe: how to extract the category and subcategory dynamically in navigation bar in asp.net Pin
ZurdoDev6-Nov-14 1:26
professionalZurdoDev6-Nov-14 1:26 
Questionintegrating geocoding with geolocation Pin
Member 99545493-Nov-14 7:16
Member 99545493-Nov-14 7:16 
following is my code when user enters hospital name and city, he will be navigated to this page to show location on map. now i want to get user current location and draw the route between current location and destination. is there any way to integrate to geocoding and geolocation? please help me out. i'll be very thankful.

XML
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style>
        html, body, #map-canvas
        {
            margin: 0;
            padding: 0;
            height: 700px;
            width: 1350px;
        }
    </style>

    <script src="http://maps.googleapis.com/maps/api/js??key=AIzaSyBcM1JmHJLyPH6m5xF0WzrqWJ9pSjCTQR4&sensor=false"></script>

<script>
    var geocoder;
    var map;
    var marker;
    function initialize() {
        var mapOptions = {
            zoom: 17,
            center: new google.maps.LatLng(-34.397, 150.644),
            mapTypeId: google.maps.MapTypeId.ROADMAP
        };
        map = new google.maps.Map(document.getElementById('map-canvas'),
            mapOptions);
        geocoder = new google.maps.Geocoder();

    }

    function geocode() {
       var loc = '<%= Session["hname"] %>';
        var city = '<%= Session["city"] %>';

        geocoder.geocode({ address: loc+city }, function (results, status) {
            if (status === google.maps.GeocoderStatus.OK) {
                map.setCenter(results[0].geometry.location);

                var contentString = '<div id="content">' +
        'Lat :' + results[0].geometry.location.lat() + '</br>lng :' + results[0].geometry.location.lng() +
        '</div>';
        var infowindow = new google.maps.InfoWindow({
                    content: contentString
                });

                marker = new google.maps.Marker({
                    position: results[0].geometry.location,
                    map: map,
                    title: results[0].geometry.location.lat() + ' , ' + results[0].geometry.location.lng()
                });

                google.maps.event.addListener(marker, 'click', function () {
                    infowindow.open(map, marker);
                );

            }
        });
        return false;
    }
         google.maps.event.addDomListener(window, 'load', initialize);
</script>

</head>
<body onload="initialize();return geocode()" >
    <form id="form2" runat="server">
    <div id="map-canvas">
    </div>
        </form>
</body>
</html>

QuestionTwo Web APIs 2.2 with Identity 2.0 for one database Pin
Quarenta3-Nov-14 3:49
Quarenta3-Nov-14 3:49 
QuestionError: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. Learn more at Pin
Harishankar Maurya2-Nov-14 21:30
Harishankar Maurya2-Nov-14 21:30 
QuestionRe: Error: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. Learn more at Pin
ZurdoDev3-Nov-14 2:43
professionalZurdoDev3-Nov-14 2:43 
Questionhow to create a dependent drop down list i.e Country,State,City like that using asp.net Pin
Shivaram_i2-Nov-14 20:08
professionalShivaram_i2-Nov-14 20:08 
GeneralRe: how to create a dependent drop down list i.e Country,State,City like that using asp.net Pin
Kornfeld Eliyahu Peter2-Nov-14 21:04
professionalKornfeld Eliyahu Peter2-Nov-14 21:04 
AnswerRe: how to create a dependent drop down list i.e Country,State,City like that using asp.net Pin
jbhaskar2-Nov-14 23:04
jbhaskar2-Nov-14 23:04 
QuestionReturning the date and 'Page_Load' question Pin
Member 87616672-Nov-14 11:30
Member 87616672-Nov-14 11:30 
QuestionOpen Source Reporting Tools in .Net Pin
meeram3931-Oct-14 23:19
professionalmeeram3931-Oct-14 23:19 
AnswerRe: Open Source Reporting Tools in .Net Pin
Peter Leow31-Oct-14 23:35
professionalPeter Leow31-Oct-14 23:35 
GeneralRe: Open Source Reporting Tools in .Net Pin
meeram395-Nov-14 21:11
professionalmeeram395-Nov-14 21:11 
Questionhow to redirect pages in asp.net usint c# Pin
manvapradhan30-Oct-14 23:42
professionalmanvapradhan30-Oct-14 23:42 
AnswerRe: how to redirect pages in asp.net usint c# Pin
member1000031-Oct-14 23:23
member1000031-Oct-14 23:23 
GeneralRe: how to redirect pages in asp.net usint c# Pin
keyboard warrior4-Nov-14 5:21
keyboard warrior4-Nov-14 5:21 
AnswerRe: how to redirect pages in asp.net usint c# Pin
shaluIT8-Nov-14 14:29
shaluIT8-Nov-14 14:29 
QuestionSmall ordinals? Pin
Member 876166730-Oct-14 11:18
Member 876166730-Oct-14 11:18 
AnswerRe: Small ordinals? Pin
jkirkerx30-Oct-14 12:00
professionaljkirkerx30-Oct-14 12:00 
GeneralRe: Small ordinals? Pin
Member 876166730-Oct-14 12:18
Member 876166730-Oct-14 12:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.