如何在您的Asp.net应用程序中获得最新的货币汇率

编程入门 行业动态 更新时间:2024-10-10 15:26:42
本文介绍了如何在您的Asp应用程序中获得最新的货币汇率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好 如何在Asp应用程序中获取最新货币汇率。是否有任何内置从网上获取最新汇率的API。 要求: 要求是我有印度卢比的一个计算值,从下拉列表中选择的货币值应该更改。 例如,如果我从下拉列表中选择美元,则计算值应转换为美元。 为此,我想使用一些WebService从网上获取最新的汇率。 我想调用的下拉列表的OnselectedIndexchange事件用于获取不同世界货币数据的Web服务。

Hi All How to get the Latest Currency Exchange Rate in your Asp 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.

推荐答案

openexchangerates / documentation [ ^ ]

大家好我得到了上述问题的解决方案。 转到webservicex,这是为ExchangeRate提供WebService 以下是我所做的代码。 在客户端应用程序中添加服务参考 www.webservicex/CurrencyConvertor.asmx 然后在客户端应用程序中创建代理对象 Hi Everyone i got the solution for the above Question. GO to webservicex, this is providing a WebService for ExchangeRate Here is the code what i did. Add service Reference in your Client Application www.webservicex/CurrencyConvertor.asmx Then Create the proxy Object in your Client Application 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); }

更多推荐

如何在您的Asp.net应用程序中获得最新的货币汇率

本文发布于:2023-11-25 11:18:28,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1629536.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:您的   应用程序   如何在   货币汇率   最新

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!