protected void Page_Load(object sender, EventArgs e) { decimal lat = String.IsNullOrEmpty(TextBox1.Text) ? 0 : decimal.Parse(TextBox1.Text); decimal lng = String.IsNullOrEmpty(TextBox1.Text) ? 0 : decimal.Parse(TextBox2.Text); //decimal lat = 42.3086M; //decimal lng = -83.4822M; Weather_Check.weatherParametersType wtp = new Weather_Check.weatherParametersType(); wtp.temp = true; wtp.snow = true; Weather_Check.ndfdXML myobject = new Weather_Check.ndfdXML(); string xml = myobject.NDFDgen(lat, lng, Weather_Check.productType.timeseries, DateTime.Now, DateTime.Now, Weather_Check.unitType.e, wtp); if (string.IsNullOrEmpty(xml) == false) { xml = xml.Substring(xml.IndexOf("Temperature")); Label1.Text = xml; } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)