online currency converter by google API in asp.net

 Currency converter online by google API:



In one of my projects there is one module that requires a currency converter application. I am applying various techniques to convert the currency, such as storing the country name and related currency values in a database and retrieve them according to the related country but that is a very lengthy and complicated process.

Then after trying many options I decided to use a third party API to complete my requirement; I chose the Google API. So my intent is to write this article to help others that might me need to do the same type of task.

So let us start this with asp.net.

Example Code of  currency converter:


Create a default.aspx page and place below code in Body

<head runat="server">
    <title>Stupid Codes | Currency Convert Online using Google API </title>
    <script src="http://www.geoplugin.net/javascript.gp" type="text/javascript"></script>
    <script src="http://www.google.com/jsapi" type="text/javascript"></script>
    <script src="JqoeryScript/JScript.js" type="text/javascript"></script>
</head>

and place below code in Body

<body>

    <form id="form1" runat="server">

    <p><b>Currency Convert in asp.net using google</b></p>

    Enter Amount:
    <input type='text' id='gp_amount' size='4' /><br />

    From Currency:
    <select id="gp_from"></select><br />

    To Currency
    <select id="gp_to"></select>

    <p><input type='button' onclick='gp_convertIt()' value='Convert' /></p>

    <b>Result :</b><label id="gp_converted"></label>

    <script type="text/javascript">gp_currencySymbols()</script>

    </form>


</body>



Other Asp.net Related Post:




Comments

  1. Calculate the live currency and foreign exchange rates with free currency converter. You can convert currencies instantly. I recmonded you Currency calculator app through this you get more results about Money converter .

    ReplyDelete
  2. Osm blog site dear I'm about to suggest this to all my listing contacts.
    Digital Marketing company in noida

    ReplyDelete

Post a Comment