I am looking to integrate googlemaps into my asp.net mvc 3 website?
I have found some links for asp.net webforms but not for asp.net mvc 3?
Can someone send me a link or a code sample?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Add this javascript to your page head (I assume you’ve already added JQuery):
Then this div to the body of your view:
Then add this script block to control the map
Notice how the Latitude and Longitude come from the model, and the view writes is out to the javascript.