Last post Mar 15, 2010 03:20 AM by mkansagarfa1984
Jan 12, 2010 03:41 PMfirstname.lastname@example.org|LINK
I have list of facilities on my web page so for example I have
on my web page
I want when the user clicks on a particular store, I can pass the directions in a querystring to see the directions in bing map.
I did lot of research and found that bing provides the web services that I can call from my asp.net application. I was wondering someone has some code like this, I just want to see the one click directions when user clicks on the particular location.
Any help will be appreciated. I also got the key from bing api's
Jan 12, 2010 04:54 PM|deepu.mi|LINK
I have used VirtualEarth in one of my app.. But you should download Microsoft.Live.ServerControls.VE.dll
I am just pasting the code below..Once you have the dll in Bin folder you can just register the dll in which ever page you want
<%@ Register Assembly="Microsoft.Live.ServerControls.VE" Namespace="Microsoft.Live.ServerControls.VE"
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<ve:Map ID="VEMap" runat="server" Height="500px" Width="730px" ZoomLevel="12"
Center-Latitude="40.764015" Center-Longitude="-73.982797" />
CSharp Code Behind
protected void Page_Load(object sender, EventArgs e)
double lat = double.Parse(Request["lat"]);
double long = double.Parse(Request["lat"]);
string description = "Some description";
private void AddShape(double latitude, double longitude, string description)
LatLongWithAltitude point = new LatLongWithAltitude(latitude, longitude);
Shape shape = new Shape(ShapeType.Pushpin, point);
shape.Description = description;
shape.CustomIcon = "images/yourImage.gif";
Also you can point mulitple location too
Hope this helps
Don't forget to “Mark as Answer” on the post, if it helps you.
Jan 12, 2010 06:12 PMemail@example.com|LINK
I just have the address. I don't have latitude and longitude. so for e.g, I have
1234 test ave.
Jan 12, 2010 06:21 PM|deepu.mi|LINK
okie try this :
Mar 15, 2010 03:20 AM|mkansagarfa1984|LINK
I am Milind Kansagara working as a web developer. Here we have integrated Microsoft.Live.ServerControls.VE.dll in our project. But When we make the code live we are getting error “Could not load file or assembly ‘Microsoft.Live.Server Control.VE. Access
Denaied”. The Error Comes Randomly Can anyone has solution ? please mail me on firstname.lastname@example.org
Could not load Assembly