On Apr 21, 7:29 am, jyswit <[email protected]> wrote:
> Hmm, I guess I am not doing it right then. Well perhaps I should
> explain what I've been doing. To be honest, no javascript was coded
> until now. I have been using vb.net all the way. So I was planning to
> do the same thing for gdirections.
>
> Below is what I've done for my interface:
>
> <asp:Panel ID="pnlRoute" runat="server" Visible='false'>
>    <table style="border-style: solid; border-color: #800000; width:
> 46%;">
>       <tr>
>          <td class="style5"><span class="style4">Point A:</
> span>&nbsp;</td>
>          <td class="style6"><asp:TextBox ID="txtA" runat="server"
> style="font-family: Calibri" Width="250px"></asp:TextBox></td>
>          <td class="style7">&nbsp;</td>
>          <td style="text-align: center"><asp:LinkButton
> ID="lbtnClose_Route" runat="server" style="font-size: small; font-
> family: Calibri; text-align: center;">CLOSE</asp:LinkButton></td>
>       </tr>
>       <tr>
>           <td class="style5">&nbsp;</td>
>           <td class="style6">&nbsp;</td>
>           <td class="style7">&nbsp;</td>
>           <td>&nbsp;</td>
>        </tr>
>        <tr>
>            <td class="style5"><span class="style4">Point B:</span></
> td>
>            <td class="style6"><asp:TextBox ID="txtB" runat="server"
> style="font-family: Calibri" Width="250px"></asp:TextBox></td>
>            <td class="style7"><input id="btnSearch_Route"
> type="button" value="Search" style="font-family: Calibri; font-weight:
> 700"/></td>
>            <td>&nbsp;</td>
>        </tr>
>    </table>
> <br />
> </asp:Panel>
>
> And this is the code I did in the back:
>
> If Not IsPostBack Then
>    Dim direction As New GDirection
>    direction.autoGenerate = False
>    direction.buttonElementId = "btnSearch_Route"
>    direction.fromElementId = txtA.ClientID
>    direction.toElementId = txtB.ClientID
>    direction.divElementId = "div_directions"
>    direction.clearMap = True
>    direction.locale = "es-ES"
>    map.Add(direction)
> End If
>
> Should I change the locale? I am not sure what is the format for
> Malaysia. I would be glad if u can pinpoint where I am wrong at.

Sorry, I don't do vb.net, but that is OK because the API doesn't
either...

I you post a link to your map, we might be able to help.  Otherwise,
you might try a vb.net support group.

  -- Larry


> Thanks
>
> On Apr 21, 8:47 pm, "[email protected]" <[email protected]>
> wrote:
>
>
>
> > On Apr 21, 4:47 am, jyswit <[email protected]> wrote:
>
> > > Hi
>
> > > I'm currently trying to implement a restaurant locator for my project
> > > using asp.net/vb.net. I've tested gdirections and I realized it does
> > > not support in penang (a state in Malaysia) where I am living.
>
> > It seems to work for 
> > me:http://www.geocodezip.com/example_geo2.asp?addr1=penang&addr2=Jalan%2...
>
> > > Is there any way for me to get directions in my place where gdirections
> > > is not supporting?
>
> > Not easily, but that doesn't seem to be true where you are trying to
> > use it.
>
> >   -- Larry- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to