<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<head><meta forua="true" http-equiv="Cache-Control" content="max-age=0" /></head>
<card title=" 使用Asp.net服务器端加载Google地图" id="card1">
<p> 游客</p><p>
标题: 使用Asp.net服务器端加载Google地图<br/>
正文:<br/>
 作为Google的电子地图，在JavaScript中调用很简单，当然，你可以在Asp.net中注册这些代码，在页面开始加载的时候自动加载Google ditu.  protected void Page_Load(object sender, EventArgs e)    {Page.ClientScript.RegisterStartupScript(this.GetType(), &amp;quot;myscript&amp;quot;,                    &amp;quot;var mapTypes = [];&amp;quot;+        &amp;quot;mapTypes.push(G_NORMAL_MAP);&amp;quot;+       &amp;quot; mapTypes.push(G_PHYSICAL_MAP);&amp;quot;+        &amp;quot;var mapTypesControl = new GHierarchicalMapTypeControl();&amp;quot;+      &amp;quot;  mapTypesControl.clearRelationships();&amp;quot;+        &amp;quot;var map = new GMap2(document.getElementById('map'),{mapTyp<br/><a href="http://www.zhongguosou.com/blog/wap.asp?mode=WAP&amp;act=View&amp;id=52&amp;Page=1">[&lt;&lt;]</a><a href="http://www.zhongguosou.com/blog/wap.asp?mode=WAP&amp;act=View&amp;id=52&amp;Page=1">[[1]]</a><a href="http://www.zhongguosou.com/blog/wap.asp?mode=WAP&amp;act=View&amp;id=52&amp;Page=2">[2]</a><a href="http://www.zhongguosou.com/blog/wap.asp?mode=WAP&amp;act=View&amp;id=52&amp;Page=2">[&gt;&gt;]</a><br/>
<br/>
<a href="wap.asp?act=Com&amp;id=52">查看评论(0)</a><br/>
<a href="wap.asp?act=AddCom&amp;inpId=52">发表评论</a><br/><br/>

<br/>

<br/>
<a href="http://www.zhongguosou.com/blog/wap.asp">首页</a>
</p>
</card>
</wml>