public partial class Login : System.Web.UI.Page { public static Double elong1, elat1; public static Double Elong1 { get { return Login.elong1; } set { Login.elong1 = value; } } public static Double Elat1 { get { return Login.elat1; } set { Login.elat1 = value; } } public void Button1_Click(object sender, EventArgs e) { String sLong1 = geocodeXmlDoc1.DocumentElement.SelectSingleNode(@"//geometry/location/lat", XmlMngr1).InnerText; String sLat1 = geocodeXmlDoc1.DocumentElement.SelectSingleNode(@"//geometry/location/lng", XmlMngr1).InnerText; elong1 = Convert.ToDouble(sLong1); elat1 = Convert.ToDouble(sLat1); } // this is a sample class public class harversine { String loudlong1 = Convert.ToString(elong1); String loudlat1 = Convert.ToString(elat1); // let say i want pass Fanswer to Textbox in button click event String Fanswer = loudlong1 + ", " + loudlat1; }
elong1
elat1
Double.TryParse(
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)