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%>

Posted in Xml ve Asp |

Mesajinizi / Yorumunuzu Yazin

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.

Kategoriler

Arsivler

Baglantilar

Site ici Arama

Meta: