vbnewbie01
asked on
Ajax ModalPopupExtender and Google Map
hi, there; using asp.net 2.0 (vb), i have placed a ModalPopupExtender on my page containing an asp.net panel and, within this, a google map.
first off, let me say that this map displays perfectly outside of the ModalPopupExtender however, when i place it inside and click the link to reveal the ModalPopupExtender, the google map does not display entirely (see image: http://www.gigantech.com/dkelly/modal.jpg)
i have scoured the net without much success but did happen to come across one poster who had a similar issue:
http://forums.asp.net/p/1091908/1848191.aspx
unfortunately, i am not using javascript as this poster is. my data is pulled from sql server then attached via a procedure, to the google map. that said, i still tried to use the poster's OpenModalPopup function but without success.
i'm wondering if anyone has had a similar issue or has any solutions to resolve what appears to be a bug.
thanks in advance.
<div>
<asp:linkbutton ID="lbMap" runat="server">Click to see map</asp:linkbutton>
<asp:Panel ID="panelMap" runat="server" CssClass="modalPopUp" style="display:none;">
<div>
<Reimers:GoogleMap ID="gmMap_lg" Width="600" Height="400" runat="server"/><br /><br />
</div>
<asp:Button ID="cmdOk" Text="Okay" runat="server" />
<asp:Button ID="cmdCancel" Text="Cancel" runat="server" /><br />
</asp:Panel>
<ajaxToolkit:ModalPopupExt ender ID="modalMap" OkControlID="cmdOk" CancelControlID="cmdCancel " BackgroundCssClass="modalB ackground" DropShadow="true" runat="server" PopupControlID="panelMap" TargetControlID="lbMap"/>
</div>
first off, let me say that this map displays perfectly outside of the ModalPopupExtender however, when i place it inside and click the link to reveal the ModalPopupExtender, the google map does not display entirely (see image: http://www.gigantech.com/dkelly/modal.jpg)
i have scoured the net without much success but did happen to come across one poster who had a similar issue:
http://forums.asp.net/p/1091908/1848191.aspx
unfortunately, i am not using javascript as this poster is. my data is pulled from sql server then attached via a procedure, to the google map. that said, i still tried to use the poster's OpenModalPopup function but without success.
i'm wondering if anyone has had a similar issue or has any solutions to resolve what appears to be a bug.
thanks in advance.
<div>
<asp:linkbutton ID="lbMap" runat="server">Click to see map</asp:linkbutton>
<asp:Panel ID="panelMap" runat="server" CssClass="modalPopUp" style="display:none;">
<div>
<Reimers:GoogleMap ID="gmMap_lg" Width="600" Height="400" runat="server"/><br /><br />
</div>
<asp:Button ID="cmdOk" Text="Okay" runat="server" />
<asp:Button ID="cmdCancel" Text="Cancel" runat="server" /><br />
</asp:Panel>
<ajaxToolkit:ModalPopupExt
</div>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
on a side note, i've also run into other timing issues ... for example, displaying a control (in my case, another google map) within an ajax AccordionPane.
for anyone having a similar issue, i resolved it with this workaround:
http://couldbedone.blogspot.com/2007/07/what-wrong-with-accordion-control.html
basically, add:
Accordion1.FindControl("no
to the Sub Page_Init() event:
Sub Page_Init()
Accordion1.FindControl("no
End Sub
hopefully these issues will be resolved in the next ajax release.
thanks again!!