MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Javascript function call from vb.net

This is a discussion on Javascript function call from vb.net within the MapPoint Web Service and Virtual Earth forums, part of the Map Forums category; Hello, I am new to asp pages and need some further assistance. Now I have the map which is loaded ...


Go Back   MapPoint Forums > Map Forums > MapPoint Web Service and Virtual Earth

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-28-2008
Member
Yellow Belt
 
Join Date: May 2007
Posts: 31
Javascript function call from vb.net

Hello,
I am new to asp pages and need some further assistance. Now I have the map which is loaded by a function (function GetMap()
{
var latLon = new VELatLong(txtLat.value, txtLong.value);
map = new VEMap('myMap');
map.LoadMap(latLon, zoom, selStyle );
} ) on the page
I want to be able to load and hide the map until an item is selected on a gridview, what code would I need to place
in the GridView1_SelectedIndexChanged to triger to call an asp page function getmap, using vb.net?
Regards,
Joe
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 03-28-2008
lfdmike's Avatar
Member
Yellow Belt
 
Join Date: May 2004
Posts: 49
Blog Entries: 7
Re: Javascript function call from vb.net

Use CSS to hide the map by default, and then when an item is selected have a javascript fire to change the visibility from hidden to visible
__________________
Mike Mueller
Lannon Fire Department
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 03-28-2008
Member
Yellow Belt
 
Join Date: May 2007
Posts: 31
Re: Javascript function call from vb.net

Hi Mike,
Thanks for the quick response, I am unsure of the syntax to make the call from the event. Have you an example?
Regards,
Joe
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
call, function, javascript, vbnet


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Virtual Earth & JavaScript Frameworks Johannes Kebeck's Blog Virtual Earth Blogs 0 03-19-2008 01:00 PM
Virtual Earth JavaScript Intellisense Helper VirtualEarth MSDN Blog Virtual Earth Blogs 0 03-10-2008 03:30 AM
JavaScript Intellisense for the Virtual Earth MapControl VE Team Virtual Earth Blogs 0 02-26-2008 04:23 PM
Help using the Mappoint control with Javascript dave17 MapPoint 2006/2009 Discussion 2 11-16-2006 08:43 AM
How to call add-in from vb Anonymous MapPoint 2006/2009 Discussion 0 12-23-2003 01:56 AM


All times are GMT -5. The time now is 10:03 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52