How to bind Google Map in C#.net application.




Download Project: GoogleMap.zip
1.       Fist take control as shown in image textbox, button, web browser…
2.       Now generate the click event of the button an write code:
                     string strstate = txtState.Text;
            string strpin = txtPinCode.Text;
            string strcity = txtCity.Text;
            string strstreet = txtStreet.Text;


            StringBuilder objstrbud = new StringBuilder();
            objstrbud.Append("http://maps.google.com/maps?q=");
            if (strstate!="")
            {
                objstrbud.Append(strstate + "," + "+");
            }
            if (strcity != "")
            {
                objstrbud.Append(strcity + "," + "+");
            }
            if (strpin != "")
            {
                objstrbud.Append(strpin + "," + "+");
            }
           
            if (strstreet != "")
            {
                objstrbud.Append(strstreet + "," + "+");
            }

            webBrowser1.Navigate(objstrbud.ToString());


See Also :
  Follow Me On Facebook

--
/\/ir@\/  <(.'.)>

Comments

Popular posts from this blog

How to make and use web service in Microsoft Dynamics Navision.

How to use Format function in Microsoft Dynamics Navision.

How to create simple report in Microsoft Dynamics Navision.