i want to use curreny Update n Currency Conversion webservice in my project ...how can i do this???????????
Plz reply
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
keshav singhPosted Nov 16, 2009, 4:51 AM
Lalit MPosted Nov 16, 2009, 5:39 AM
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.