Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to convert currency usd to INR in asp.net c# dynamically
Posted

 
Share this answer
 
Hope this will help you
Need Code For The Currency Converter[^]
 
Share this answer
 
you can either store the currency names with their value in database. for this approach you require to set any one currency as your default currency. i.e. INR as your default. and then save the conversion formula's for each currency from INR to them.
now when you receive the amount in dollar, convert into INR and then convert to any other currency you want. same will be the case for PKR. convert PKR to INR then to any other currency. i.e. USD
"using this approach you may need to make timely changes in formulas, as per currency rate changes"

secound way is to use already built services. one of the example is
http://www.webservicex.net/CurrencyConvertor.asmx[^]


its good to write your own for personal experience but you can use third party services as well.
 
Share this answer
 

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