Asp.net programming we consider all important topic for knowledge about controls,web Services, JSON, Ajax, database, and interview related Question. In this Asp.net and sql server tutorial blog we give many examples of jquery as like How Play YouTube Video in Your Asp.net Website by URL, How to Play YouTube Videos in Asp.net by using Jquery , Jquery Change div background on mouseover in asp.net , JQuery UI Datepicker (Calendar) etc.

Thursday, June 25, 2015

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:




1 comment: