使用ASP.NET与C#进行货币转换 [英] CURRENCY CONVERSION USING ASP.NET WITH C#

查看:73
本文介绍了使用ASP.NET与C#进行货币转换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目中我想进行货币兑换,

如果我们想将$转换为卢比,反之亦然,如何在代码中执行此操作

有200货币如下来的货币:b $ b来自货币:下拉列表

到货币:下拉列表

plz给我一个关于它的想法,就像在数据库中我需要创建的一样像这样,PLZ帮助我,我正在从同一货币获得正确的东西,并且

感谢提前

in my project i want to do currency conversion,
if we want to convert $ to rupee and vice versa ,how to do it in code
there are 200 currencies like
from currency:dropdownlist
to currency:dropdownlist
plz give me a n idea about it like in datbasees which all i need to create like that,plz help me i am getting the correct thing for same currency in from and to
THANKS IN ADVANCE

推荐答案

to rupee and反之亦然,怎么做代码

有200种货币,比如

来自货币:下拉列表

到货币:下拉列表

plz给我一个关于它的想法,就像在数据库中我需要创建的那样,plz帮助我,我得到了相同货币的正确信息来自和/或
感谢提前
to rupee and vice versa ,how to do it in code
there are 200 currencies like
from currency:dropdownlist
to currency:dropdownlist
plz give me a n idea about it like in datbasees which all i need to create like that,plz help me i am getting the correct thing for same currency in from and to
THANKS IN ADVANCE


检查这些:



获取货币汇率的简单类 [ ^ ]



使用网络进行货币转换服务 [ ^ ]



希望它有所帮助:)
check these out:

Simple Class to get Currency Exchange Rates[^]

Currency Conversion Using Web Services[^]

hope it helps :)


Dictionary<string,decimal> rates = new Dictionary<string,decimal>();
rates.Add("dollortorupee", 2.0);
rates.Add("rupeetodollor", 0.5);



decimal converted = moneyvalue * rates["dollortorupee"];


这篇关于使用ASP.NET与C#进行货币转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆