 |
|
 |
https://www.igolder.com/exchangerate.ashx?from=EUR&to=CAD[^]
Change the currency code in the querystring... simple and very fast to use!
System.Net.WebClient client = new System.Net.WebClient();
double rate = double.Parse(client.DownloadString(@"https://www.igolder.com/exchangerate.ashx?from=USD&to=CAD"));
|
|
|
|
 |
|
 |
HI,
how do I integrate this in my asp.net site?
|
|
|
|
 |
|
 |
This is very old code and won't work now. There are many web services providing currency conversion rates. You should use those web services instead of doing HTML data extraction.
|
|
|
|
 |
|
|
 |
|
 |
I downloaded this utility. But unfortunately it didnt work for me. I guess Yahoo has changed interface.
dfg
|
|
|
|
 |
|
 |
written it long back, you can download the code and debug where the problem is, as I am no longer maintaining it. It was just a learner project.
|
|
|
|
 |
|
|
 |
|
 |
(title says it all)
"He that is good with a hammer tends to think everything is a nail." - Abraham Maslow
|
|
|
|
 |
|
 |
I found just the executable in the download. Where is the code? This site is for teaching how-to techniques. Please post the code.
|
|
|
|
 |
|
 |
Code Project is meant to help/assist/guide computer professionals all over the world. Its not a showcase for your applications, rather a teaching/mentoring area for others, and its 2-way, you support someone else, and they'll support you. And thats the reason, all of us professionals, drop by at least once a day to this website, respond to queries.. all to help others.
So, Mr. coder, do put code in zip as well.
A L I
|
|
|
|
 |
|
 |
I'm a little dissapointed there is still no code included. Is it me??? This tool is pretty much useless on it's own. However including the code would make this a useful example. I have to give it a 1 because it basically wasted my time.
|
|
|
|
 |
|
 |
No code. Note much point having it posted.
|
|
|
|
 |
|
 |
you are wasting our time. Please post the code, or no need to create this page.
|
|
|
|
 |
|
|
 |
|
|
 |
|
 |
I have downloaded the zip file but it only contains the executable. The main focus of CodeProject is the "code" and hence the code should be attached. Also the article should cover how the tool internally works (for example, uses webservices, ...etc), rather than just explaining its functionality as a black box.
I think this functionality would be more useful to integrate into products, rather than using it as a standalone tool. Hence, the code is essential.
Victor Boctor
http://www.futureware.biz[^]
|
|
|
|
 |
|
 |
Very useful utility!
Also see this[^] article for a framework for harnessing services offered by websites as C++ objects.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
 |
|
 |
Thanks, but I didn't find out any such service, and the webpages are always updated fast than their webservices, because website are their main business. Secondly, who wants to go in licensing terms for such a small thing.
http://www.priyank.in/
|
|
|
|
 |
|
 |
I think you may have misunderstood my post. My web resource provider class makes a website form look like a webservice to the client. Re: licensing, most websites such as Yahoo, Google, etc. don't allow us to repackage information from their websites without their permission.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
 |
|
 |
Ya, sorry I misunderstood. By I don't think that would be of use to me, I am talking about myself only. As it is written in VC++, but the currency convertor is written in C#. Secondly, it does not download the whole page, that its key point. Thirdly, data on web pages changes, so one cannot pinpoint the location, where the data is available. This program uses regular expression to find out the data anywhere on the page.
http://www.priyank.in/
|
|
|
|
 |
|
 |
Yep, it's for C++ clients only.
Priyank Bolia wrote:
data on web pages changes,
That's not a limitation.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
 |
|
 |
Ravi Bhavnani wrote:
That's not a limitation.
But what I think is that, you look for for a specific offset in the web page for data.
http://www.priyank.in/
|
|
|
|
 |
|
 |
Priyank Bolia wrote:
But what I think is that, you look for for a specific offset in the web page for data.
From your description of its inner workings, it seems you're doing the same thing?
How it works:
Actually its internal working is very complex, we have to download the page from yahoo website using HttpWebRequest and HttpWebResponse and apply regular expression to the data, to fetch the currency rates, using Regex class Match function.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
 |
|
 |
Ravi Bhavnani wrote:
it seems you're doing the same thing?
Na, I am using regular expression, isn't that different from hard coded location, than to look for a type of string.
http://www.priyank.in/
|
|
|
|
 |
|
 |
Thank you...this is very useful
|
|
|
|
 |