带有ajax选项卡控件中的asp.net 3.5的google map [英] google map with asp.net 3.5 inside ajax tab control

查看:81
本文介绍了带有ajax选项卡控件中的asp.net 3.5的google map的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的Web应用程序中实现google map.我正在使用asp.net 3.5,
vs2008.我发现了很多文章,我随后读到的是URL:- Google Maps Control for ASP.NET-第1部分 [ ^ ]
当我在testPage中使用此控件时,它工作正常,除此google用户控件外,没有任何控件.但是,当我将此控件放在ajax选项卡控件中时,它不会显示google map灰色框.
任何人都可以给我建议吗,如果您需要我也可以发布我的代码....

I want to implement google map in my web application. I am using asp.net 3.5,
vs2008. I found many article, the one i followed having URL:-Google Maps Control for ASP.NET - Part 1[^]
it working fine when i am using this control in testPage, without any control except this google user control. But when i am putting this control in ajax tab control it''s not rendring the google map grey box.
can any one give me suggestion if u require i would post my code also....

推荐答案

尝试一下:
在ASP.NET AJAX TabPanel中使用GoogleMap控件时,必须设置控件的大小(以像素为单位)(而不是以百分比为单位),以使控件正常工作.为了解决选项卡面板内部渲染不正确的地图,在切换到地图选项卡时必须手动调用checkResize().


这是一个已知问题,有据可查.在已知问题部分中查看以下内容: Google Maps Control [
Try this:
When using GoogleMap control inside ASP.NET AJAX TabPanel you have to set size of the control in pixels (not in percents) in order to get control working properly. In order to solve the not properly rendered map inside tab panel checkResize() have to be invoked manually when switching to the map tab.


This is a known issue, well documented. Look here in the known issue section: Google Maps Control[^]


这篇关于带有ajax选项卡控件中的asp.net 3.5的google map的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆