passing values to html document from .Net app

  • Thread starter Thread starter Bill Nguyen
  • Start date Start date
B

Bill Nguyen

I would like to invoke the IE browser and pass values (lat and long) to
function GtMap() the html file below from a VB.NET app.
help, please!

Thanks

Bill
------------------------



<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script
src="http://dev.virtualearth.net/mapcontrol/v3/mapcontrol.js"></script>
<script>
var map = null;

function GetMap()
{
map = new VEMap('myMap');
map.LoadMap(new VELatLong(47.6, -122.33), 10 ,'h' ,false);
}
</script>
</head>
<body onload="GetMap();">
<div id='myMap' style="position:relative; width:400px;
height:400px;"></div>
</body>
</html>
 
So... write the html contents to a file and simply insert the values where
they belong then execute the html file?

-L
 
This is a workable solution. Is there a more efficient way to do it by just
passing the required values?

Thanks

Bill
 
Hello Bill,

If yer using the IE activeX control or the WebBrowser control in 2.0 then
you can simply use the DOM to assign the values to the elements. Look at
WebBrowser.Document and ask MSDN about the IE DOM.

-Boo
 
Back
Top