*Maaf cross posting

Dear All Members,

Mohon pencerahan tentang bagaimana cara validasi inputan(bersal dari
textBox) yang akan kita masukkan ke db.
Hal ini ditujukan untuk menjegah terjadinya SQL Injection, saya sudah
mencoba menggunakan RegularExpressionValidator Bawaan dari DotNet tapi saya
rasa kurang flexibel karena hanya bisa digunakan untuk 1tetxbox(komponen
saja)

saya pengen membuat fungsi global yang akan memeriksa inputan textboxt saya
mohon bantuan untuk pembuatan validator di C# trimaksih :)
kalo di php saya pernah buat seperti ini :

function apa_str($MSK)
{
    global $OT;
    if(empty ($MSK))
    {
        $OT = " Belum di Isi";
        $HSL = false;
    } else {
    $A = array ("'", ";", "%", "|", "<", ">", "?", "!", "[", "]", "/", "*",
"&", "^", "(", ")", "~", ":", "#", "\\", ",", "$");
    $JML = count ($A);
    $HSL = true;
    $POS = -1;
    for ($i=0 ; $i< $JML ; $i++)
    {
        if (!(strpos ($MSK,$A[$i])===false))
        {
            $POS = $i;
            $HSL = false;
            break;
        }
    }
    if ($POS > -1)
        $OT = " Tanda $A[$POS]";
    }
    return $HSL;
}



-- 
                     "Urip Pisan Jo` Digawe Soro"
         add fs and YmId   AmiGelz [at] yahoo [dot] com
-=*=-AmiGelz || NFS || Agen_dosa A.K.A Nurma A K H -=*=-


[Non-text portions of this message have been removed]



-- 
www.itcenter.or.id - Komunitas Teknologi Informasi Indonesia 
Info, Gabung, Keluar, Mode Kirim : [EMAIL PROTECTED] 
:: Hapus bagian yang tidak perlu (footer, dst) saat reply! :: 
## Jobs: itcenter.or.id/jobs ## Bursa: itcenter.or.id/bursa ##
$$ Iklan/promosi : www.itcenter.or.id/sponsorship $$

[@@] Jaket ITCENTER tersedia di http://shop.itcenter.or.id 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ITCENTER/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Kirim email ke