Click here to Skip to main content
15,911,141 members
Please Sign up or sign in to vote.
1.60/5 (3 votes)
See more:
Hi All


How to get the Latest Currency Exchange Rate in your Asp.net Application.Is there any build-in API for getting the latest exchange rates from the web.

Requirement:

The Requirement is i have one calculated value in Indian Rupee, on selected Currency from a dropdownlist the value should change.

For example if i select USD from dropdownlist the Calculated value should converted to USD.
For this i want to use some WebService to get the latest Exchange Rates from the Web.

OnselectedIndexchange event of dropdownlist i want to call the webservice to get data for different World Currencies.
Posted
Updated 10-Jul-13 2:33am
v2
Comments
[no name] 10-Jul-13 7:24am    
No there is nothing built in. You have to find a web service and get your data from that.

 
Share this answer
 
Comments
Manfred Rudolf Bihy 10-Jul-13 9:23am    
Nice find!
Hi Everyone i got the solution for the above Question.

GO to http://webservicex.net, this is providing a WebService for ExchangeRate

Here is the code what i did.

Add service Reference in your Client Application

http://www.webservicex.net/CurrencyConvertor.asmx

Then Create the proxy Object in your Client Application

C#
CurrencyExchange.CurrencyConvertor exchangerate = new CurrencyExchange.CurrencyConvertor();
double exchangevalue;
if (DropDownListcurrencies.SelectedValue == "UAE Dhiram")
{
exchangevalue = exchangerate.ConversionRate(CurrencyExchange.Currency.INR,CurrencyExchange.Currency.AED);
resultuae = result * Convert.ToDecimal(exchangevalue);
}
 
Share this answer
 
Comments
Member 12604468 1-Jul-16 12:13pm    
please can some help with a web service currency converter source code in visual basic

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900