title: Getting exchange rates from the internet
body: <p>What I wanna do is, to get exchange rates from internet.
  I found this function after long research.</p>
  
  <pre><code>protected void Button1_Click(object sender, EventArgs e)
      {
          try
          {
          string xmlResult = null;
          string url;
          url = "http://www.webservicex.net/CurrencyConvertor.asmx/ConversionRate?FromCurrency=" + TextBox1.Text + "&amp;ToCurrency=" + TextBox2.Text + "";
          HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
          HttpWebResponse response = (HttpWebResponse)request.GetResponse();
          StreamReader resStream = new StreamReader(response.GetResponseStream());
          XmlDocument doc = new XmlDocument();
          xmlResult = resStream.ReadToEnd();
          doc.LoadXml(xmlResult);
          Label1.Text = "Current Exchange Rate for " + TextBox1.Text.ToUpper() + " ---&gt; " + TextBox2.Text.ToUpper() + " value " + doc.GetElementsByTagName("double").Item(0).InnerText;
          }
          catch(Exception ex)
          {
              Label1.Text="Not a valid Currency or Try again later";
          }
      } 
  </code></pre>
  
  <p>But <code>http://www.webservicex.net/</code> doesn't support AZN (Azerbaijani Manat) to usd and vice versa conversion. What I wanna do is, if it's possible connect to the internet and get rates. Else use written function for conversion (I'VE already written). </p>
  
  <p>What do you advice, how can I get current rates for USD and AZN (or just get result by sending USD or AZN) ? Is there anyway to get it from inside Windows forms application?</p>