You can add a HyperLink button to your page.
Then on its click event handler you can write.

            string addr1 = "address 1";
            string addr2 = "address 2";

            string strUri = "http://maps.google.com/maps?f=d";;
            strUri += "&saddr=" + addr1;
            strUri += "&daddr=" + addr2;

            Response.Redirect(strUri);

Here addr1 and addr2 is hardcoded to hold the values of from address
and to address.
You can replace these with your variables.

On Aug 27, 11:33 pm, Mary Jane <[email protected]> wrote:
> Hello all
> I am working on a store locator in asp.net c#. Everything works fine
> but I do not know how to add a directions link. I developed the same
> project in php/mysql and the link works fine. The problem seems to be
> with my limited asp.net experience.
> Here is the problem line:
> content:""<div class=\""infoWindow\""><b>CERF #{0}</b><br/><b>{1}</
> b><br/>{2}<br/>  {3} MD<br/>{4}<br/><b>Emissions Repairs: {5}</b><br/><a 
> href=http://maps.google.com/maps?
>
> f=d&saddr=address1&daddr=address2>Directions</a></div>""
> How should I modify this line to get input from the user for address1
> and the marker on which the info window sits address2? I have the
> variables for both but I seem to be hung up on syntax. Thanks!!!

Reply via email to