Arkadaşlar herkese merhaba. Öncelikle zaman ayırıp okuduğunuz için teşekkürler.


<input type="text" name="tckimlikkk1" size="16" style="font-family: Tahoma; " maxlength="11">
tarzındaki bir girişe

public Boolean TcKimlikKontrol(String kimlikNo) 
{ 
Tc = kimlikNo; 
int no = 0; 
no = no + Convert.ToInt32(Tc.Substring(0, 1)); 
no = no + Convert.ToInt32(Tc.Substring(1, 1)); 
no = no + Convert.ToInt32(Tc.Substring(2, 1)); 
no = no + Convert.ToInt32(Tc.Substring(3, 1)); 
no = no + Convert.ToInt32(Tc.Substring(4, 1)); 
no = no + Convert.ToInt32(Tc.Substring(5, 1)); 
no = no + Convert.ToInt32(Tc.Substring(6, 1)); 
no = no + Convert.ToInt32(Tc.Substring(7, 1)); 
no = no + Convert.ToInt32(Tc.Substring(8, 1)); 
no = no + Convert.ToInt32(Tc.Substring(9, 1)); 
string son = Convert.ToString(no).Substring(1, 1); 
if (son == Tc.Substring(10, 1)) 
{ 
return true; 
} 
else 
{ 
return false; 
} 
}
benzeri bir kontrol uygulaması koyabilir miyiz?

Teşekkürler.