i want to use curreny Update n Currency Conversion webservice in my project ...how can i do this???????????
Plz reply
Currency update n Currency Conversion
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
keshav singhRank #3,113 · 460 reputationPosted Nov 15, 2009, 11:51 PM EST
http://www.csharphelp.com/archives2/archive441.html ttp://www.codeproject.com/KB/aspnet/currency_convertor_ws.aspx http://www.eggheadcafe.com/community/aspnet/2/10087298/update-currency-price.aspx if this helps you then marks as acceptedLalit MRank #1,186 · 1.5K reputationPosted Nov 16, 2009, 12:39 AM EST
Try this code sample
net.webservicex.www.Currency obj = new net.webservicex.www.Currency();
switch(ddl2.SelectedValue.ToString())
{
case "SGD":
obj = net.webservicex.www.Currency.SGD;
break;
case "USD":
obj = net.webservicex.www.Currency.USD;
break;
case "AUD":
obj = net.webservicex.www.Currency.AUD;
break;
case "EUR":
obj = net.webservicex.www.Currency.EUR;
break;
case "INR":
obj = net.webservicex.www.Currency.INR;
break;
}
create another object(obj1) as like above
net.webservicex.www.CurrencyConvertor cr = new net.webservicex.www.CurrencyConvertor();
double euro_us = cr.ConversionRate(obj, obj1);
now you can pass the dropdownlist's value.