Bir stringte sadece izin verilen karakterlerin kullanılmasını sağlarsınız.<%function NoTurkce(input)dim gecerliKarakterlergecerliKarakterler = " !,%()*+-./0123456789:;=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`'abcdefghijklmnopqrstuvwxyz{|}~£$"""""if len(input)>0 thenfor i=1 to len(input)harf = mid(input,i,1)if not instr(gecerliKarakterler,harf)>0 thenNoTurkceHata(harf)response.endExit functionend ifnextelseNoTurkceHata("Bos deger")response.endend ifNoTurkce=inputend function%><%sub NoTurkceHata(hata)
<%=Server.HTMLEncode(hata)%>
illegal character!
You can only use characters below:
<%=Server.HTMLEncode("!,#,%,(,),*,+,,,-,.,/,0,1,2,3,4,5,6,7,8,9,:,;,=,?,@,A,B,C,D,E,F,G,H,I,J ,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,[,\,],^,_,`,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v ,w,x,y,z,{,|,},~,£")%><%end sub%>