![]() |
|
|||||||
| Kayıt ol | Blogs | Yardım | Üye Listesi | Ajanda | iTrader | Forumları Okundu Kabul Et |
| ASP .NET ASP & .NET |
|
|
|
LinkBack | Seçenekler | Stil |
|
|||
|
Merhaba,
bu bölüm ASP bölümü olsun o zaman buda Uzun kelimeleri ayırmak için Alıntı:
|
|
||||
|
Arkadaşlar, başlık sabitlenmiş ve "ASP Hazır kodlar" olarak değiştirilmiştir. Burada ASP kodlarını paylaşalım ve geniş bir kod arşivi oluşturalım. Hepimiz faydalanırız. Benim bildiğim kodu belki diğer üye bilmeyecek, onun bildiğini de ben bilmeyeceğim.
__________________
Fragman |
|
|||
|
Kelimelerin baş harflerini büyüt
Kod:
<% Function Proper(X) 'Return a String With the first letter of the word capitalised If IsNull(X) Then Exit Function Else lowercaseSTR = CStr(LCase(X)) OldC = " " MyArray = Split(lowercaseSTR," ") For IntI = LBound(MyArray) To UBound(MyArray) For I = 1 To Len(MyArray(IntI)) If Len(MyArray(IntI)) = 1 Then newString = newString & UCase(MyArray(IntI)) & " " ElseIf I=1 Then newString = newString & UCase(Mid(MyArray(IntI), I, 1)) ElseIf I = Len(MyArray(IntI)) Then newString = newString & Mid(MyArray(IntI), I, 1) & " " Else newString = newString & Mid(MyArray(IntI), I, 1) End If Next Next 'IntI Proper = Trim(newString) End If End Function %> |
|
||||
|
Lütfen kodları aldığınız yerden kaynak belirtin! Kaynak belirtmeden verecekseniz kendi kodlarınız olsun.
http://www.bilgisayarbolumu.com/?kon...=oku&sayfala=1 http://support.microsoft.com/kb/815282/ja Konu Caesar tarafından (2007-03-04 Saat 16:48 ) değiştirilmiştir.. |
|
|||
|
Handling Spaces in URL
Kod:
.vbScript{color:black;background-color:white;font-size:10pt;font-family:Courier New;}.vbScript B{color:blue}Netscape sometimes has problems handling strings With a space In it when using the Response.Redirect method. To overcome this problem use the Server.URLEncode("variable name") With the String.
strField = Server.URLEncode(strField)
Response.Redirect("yourpage.asp?Field=strField")
|
|
||||
|
Merkez Bankası'ndan sizi hiç zahmete sokmadan güncel döviz kurlarını çekmektedir. " http://www.tcmb.gov.tr/kurlar/today.html " adresinden parametreleri alarak döviz kurları tablosunu çoğaltmanız mümkündür. Bu scripti editleyerek http://www.garanti24.com adresinde bir uygulama yapmıştım. Her portalda kullanılabilir güzel bir döviz kuru scripti... Sorun yaşayan veya yapamayan arkadaşlara yardımcı olabilirim P.M'den
![]() Kod:
<%
strAdres = "http://www.tcmb.gov.tr/kurlar/today.html"
Public Function VeriAl(strGelen)
Set objVeriAl = Server.CreateObject("Microsoft.XMLHTTP" )
With objVeriAl
.Open "GET" , strGelen, FALSE
.sEnd
VeriAl = .Responsetext
End With
SET objVeriAl = Nothing
End Function
strVeri = VeriAL(strAdres)
iDolar=InStr(strVeri,"USD" )
strDolarAlis=Mid(strVeri,iDolar+50,10)
strDolarSatis=Mid(strVeri,iDolar+51,10)
iEuro=InStr(strVeri,"EUR" )
strEuroAlis=Mid(strVeri,iEuro+38,11)
strEuroSatis=Mid(strVeri,iEuro+50,11)
%>
<html>
<title>TCMB Döviz Kurları</title>
<body>
<table width="20%" border="0" cellspacing="0" style="border: 1px solid #D7D7D7">
<tr>
<td nowrap width="99%" bgcolor="#E1E1E1" colspan="2"><strong>
<font face="Verdana"><b><font color="#FF0000" style="font-size: 7pt"> DOLAR</font></b></font></strong></td>
</tr>
<tr>
<td nowrap width="7%"><font face="Verdana" style="font-size: 7pt; ">ALIş</font></td>
<td width="92%">
<div align="left"><font face="verdana" size="1">
<p align="right"> <%=strdolaralis%> YTL
</font></div></td>
</tr>
<tr>
<td nowrap width="7%"><font face="Verdana" style="font-size: 7pt; ">SATIş</font></td>
<td width="92%">
<div align="left"><font face="verdana" size="1">
<p align="right"> <%=strdolarsatis%> YTL
</font></div></td>
</tr>
<tr>
<td colspan="2" style="border-top: 1px solid #C0C0C0"> </td>
</tr>
<tr>
<td colspan="2" bgcolor="#E1E1E1"><strong><font face="Verdana"><b>
<font color="#0099CC" style="font-size: 7pt"> </font><font color="#FF0000" style="font-size: 7pt">EURO</font></b></font></strong></td>
</tr>
<tr>
<td nowrap width="7%"><font face="Verdana" style="font-size: 7pt; ">ALIş</font></td>
<td width="92%">
<p align="right"><font face="verdana" size="1"> <%=streuroalis%> YTL </font></td>
</tr>
<tr>
<td nowrap width="7%"><font face="Verdana" style="font-size: 7pt; ">SATIş</font></td>
<td width="92%">
<p align="right"><font size="1" face="verdana"><%=streurosatis%> YTL</font><font size="1">
</font> </td>
</tr>
</table>
</body>
</html>
|
|
||||
|
ip adresi bulmak ve proxy den gelip gelmedigini anlamak için kullanılacak kod.
Kod:
<%
Response.Write "Ip Adresi = " & Request.ServerVariables("REMOTE_ADDR") & "<br>"
%>
<%
If Request.ServerVariables("HTTP_X_FORWARDED_FOR") <> "" Then
Response.Write "Istek Yapan Ip : " & Request.ServerVariables("HTTP_X_FORWARDED_FOR")
End If
%>
__________________
Yorum yazmayarak yada mesaj atmayarak protesto eden kişi ... |
![]() |
| Konuyu Toplam 1 Üye okuyor. (0 Kayıtlı üye ve 1 Misafir) | |
| Seçenekler | |
| Stil | |
|
|
Benzer Konular
|
||||
| Konu | Konuyu Başlatan | Forum | Cevaplar | Son Mesaj |
| Gerekli Kodlar [PHP] | dejafu | PHP | 11 | 2006-02-18 18:32 |
| javada _L1: kodlar ve goto komutu | enosoft | Java JSP C# | 1 | 2005-10-16 23:37 |
| asp de sayfalama yaptırmak için gereken kodlar nelerdir? | sad_ | ASP .NET | 3 | 2005-04-08 01:33 |
| kodlar mı, hosting mi? | pigeon | Webmaster Genel Konular | 6 | 2005-03-29 23:03 |
| Hazir Kodlar | M.CoRLeOnE | HTML Javascript CSS | 3 | 2004-12-14 14:57 |