Hi Here I need Code For converting one country currency into another country currency
Example
1)if we give input as Usd 1 Dollar it should display as 53.45 Indian rupees.
2)if we give input as Eur 1 pound it should display as 73.45 Indian rupees.
need code in Asp.net with C# Language
it should display values as per as market in present day (I mean that rupee value may change day by day)
here i am using web Services this web service
http://www.webservicex.net/CurrencyConvertor.asmx?WSDL[
^]
can any one tell the procedure how to call this web services in code
i have used this in on form load
(here My web service name is CurrencyConvertor)
{
CurrencyConvertor.Currency Currency = default(CurrencyConvertor.Currency);
System.Array CountryList = default(System.Array);
CountryList = System.Currency.GetType();
Country1list.DataSource = CountryList;
Country1list.DataBind();
Country2list.DataSource = CountryList;
Country2list.DataBind();
}
again in button click(here its give lot of errors)
{
CurrencyConvertor.CurrencyConvertor CurrencyConvertor = new CurrencyConvertor.CurrencyConvertor();
CurrencyConvertor.Currency Currency = new CurrencyConvertor.Currency();
double dt = CurrencyConvertor.ConversionRate(System.Enum.Parse(Currency.GetType(), DropDownListFromCountry.Text), System.Enum.Parse(Currency.GetType(), DropDownListToCountry.Text));
Response.Write(string.Format("Converted Amount {0}", dt * Convert.ToDouble(TextBoxRes.Text.Trim)));
}