Ajax
ASP
C,C++
C#,.NET
CSS,HTML
Delphi,Kylix
Experience
Flash
Java
JavaScript
PHP
Python
QT
SQL
ShellScript
VB
U :
P :
Register
Lost Password
Other Links
Code Archive
Save Giovanni
ASP Category Code
Real Name
:
Mustafa Agâh Öztürk
Subject
:
TCMB 'dan Döviz Kurları
Description
:
TCMB 'dan döviz kurlarını alarak sayfanızda görüntülemenizi sağlayan kullanışlı bir uygulama. Kullanılışı kodların alt kısmında yer almaktadır.
<% Public Function VeriAl(strGelen) Set objVeriAl = Server.CreateObject("Microsoft.XMLHTTP" ) objVeriAl.Open "GET" , strGelen, FALSE objVeriAl.sEnd VeriAl = objVeriAl.Responsetext SET objVeriAl = Nothing End Function strAdres = "http://www.tcmb.gov.tr/kurlar/today.html" strVeri = VeriAL(strAdres) iDolar=InStr(strVeri,"USD" ) strDolarAlis=Mid(strVeri,iDolar+39,10) strDolarSatis=Mid(strVeri,iDolar+52,10) iEuro=InStr(strVeri,"EUR" ) strEuroAlis=Mid(strVeri,iEuro+39,11) 'alis strEuroSatis=Mid(strVeri,iEuro+52,11) 'satis %> Döviz kurlarının görünmesini istediğiniz yere aşağıdaki kodları yazın. <%=strdolarsatis%> <%=streurosatis%>
Rating
:
4.13
(out of 5)
Visitor Voting Booth
:
Excellent
Very Good
Good
Fair
Poor
Copyright © 2006 SharingCode.NET . All rights reserved. Hosted By: SisNetworks