|
I am building a website in which I need to show the price of items in different currencies depending on the country chosen by the user.The price has to be dynamically updated daily based on the exchange rate. How do I go about doing this in ASP.NET?
|
|
|
|
|
Deepa4 wrote: I need to show the price of items in different currencies depending on the country chosen by the user.
This suggests you to have a dropdown where user can select country and thus currency.
Based on the dropdown selection, get the latest data, convert anything that needs to be based on currency multiplier and then use the modified data as input for the page display.
Try out.
|
|
|
|
|
Hi,
Actually,I'm not using a dropdown list.The website is an international one in which there are different home pages for different countries.So,I want to show the images and prices of different watches on the website and the price should be updated dynamically depending on the exchange rate.So,how do I get the exchange rate values to do such a dynamic update?
|
|
|
|
|
Deepa4 wrote: The website is an international one in which there are different home pages for different countries.
Even then, there must be something that is driving the localization. Dropdown is just a way to know what country/currency. Whichever way you are chaning your homepage, based on the same paramter your data should be changed/driven.
|
|
|
|
|
|
I think you are looking to get the most recent exchange rate.
Check out: http://www.webservicex.net/ws/WSDetails.aspx?CATID=2&WSID=10[^]
You could write a small program that would invoke this webservice for the currencies you desire and store those rates in a lookup table which your drop-down list would be bound.
Good luck.
|
|
|
|