private string GetGoldPrice() { GetGoldPriceSoapClient client = new GetGoldPriceSoapClient(); var a = client.GetCurrentGoldPrice(ConfigurationManager.AppSettings["GoldSilverDailyRateUid"], ConfigurationManager.AppSettings["GoldSilverDailyRatePwd"]); return(a[0].ToString()); }
protected void RadButton1_Click(object sender, EventArgs e) { //Response.Redirect("~/WebForm1.aspx"); //Server.Transfer("~/PersistExpandedState20.aspx"); //LondonGoldAndSilverFixSoap client = new LondonGoldAndSilverFixSoapClient(); //var response = client.GetLondonGoldAndSilverFix(new GetLondonGoldAndSilverFixRequest()); //var data = response.GetLondonGoldAndSilverFixResult; double val = GetStockQuoteGoogle(); GetGoldPriceSoapClient client = new GetGoldPriceSoapClient(); var data = client.GetCurrentGoldPrice("*****@*****.**", "dsm123"); double.TryParse(data[0], out val); RadChart1.Series[0].AddItem(val); }