asp.net - Subgurim GDirection not displaying on web page -
i using subgurim on webpage , trying directions populate. have markers being displayed. not in process of adding directions, not seeing why not being displayed.
below web page:
<%@ register assembly="gmaps" namespace="subgurim.controles" tagprefix="cc1" %> <asp:content id="content2" contentplaceholderid="contentplaceholder1" runat="server"> <table align="center" width="80%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="center" valign="top" width="10%"> <asp:label id="lbldirectionsfrom" runat="server" cssclass="label" text="drive from:" visible="false"></asp:label> <asp:dropdownlist id="ddldirectionsfrom" runat="server" cssclass="textbox" width="100px" appenddatabounditems="true" visible="false" autopostback="true"> </asp:dropdownlist> </td> <td align="center" valign="top" width="20%" colspan="3"> <asp:label id="lbldirectionsto" runat="server" cssclass="label" text="drive to:" visible="false"></asp:label> <asp:dropdownlist id="ddldirectionsto" runat="server" cssclass="textbox" width="100px" appenddatabounditems="true" visible="false" autopostback="true"> </asp:dropdownlist> </td> <td align="left" valign="top" colspan="4" width="40%"> <input type="button" id="bt_go" runat="server" value="get directions" onserverclick="getdirections" class="cmdbutton" visible="false" /> </td> </tr> <tr> <td align="right" valign="top" width="10%"> </td> <td align="left" valign="top" width="20%" colspan="3"> </td> <td align="left" valign="top" colspan="4" width="40%"> <asp:label id="txtmapmsg" runat="server" text="txtmapmsg" cssclass="msgbox" width="80%" visible="false" backcolor="#f7b432"></asp:label> </td> </tr> <tr> <td align="center" valign="top" colspan="4" width="60%"> <asp:textbox id="tb_frompoint" runat="server" meta:resourcekey="tb_frompointresource1"></asp:textbox> <asp:textbox id="tb_endpoint" runat="server" meta:resourcekey="tb_endpointresource1"></asp:textbox> <cc1:gmap id="gmap1" runat="server" key="googlemaps.subgurim.net" commercialkey="googlemaps.subgurim.net_commercial" enableserverevents="true" /> <div id="div_directions"></div> </td> <td align="center" valign="top" colspan="4" width="40%"> </td> </tr> </table> </asp:content> here code creating directions
protected sub getdirections() dim navcaredirection new gdirection() dim sitemnbr string txtmapmsg.visible = false txtmapmsg.text = "" if ddldirectionsfrom.selecteditem.value = "0" txtmapmsg.text = "you must select directions" txtmapmsg.visible = true txtotherstart.focus() exit sub end if if ddldirectionsto.selecteditem.value = "0" txtmapmsg.text = "you must select to directions" txtmapmsg.visible = true txtotherstart.focus() exit sub end if sitemnbr = ddldirectionsfrom.selecteditem.value tb_frompoint.visible = true tb_endpoint.visible = true navcaredirection = new gdirection() navcaredirection.autogenerate = false navcaredirection.buttonelementid = "bt_go" navcaredirection.fromelementid = tb_frompoint.clientid navcaredirection.toelementid = tb_endpoint.clientid navcaredirection.divelementid = "div_directions" navcaredirection.clearmap = true navcaredirection.errormessage = "directions error" gmap1.add(navcaredirection) end sub i not getting error , no directions. appreciated.
Comments
Post a Comment