locked
[HELP] Custom Normalization RRS feed

  • Question

  • User-1679863939 posted

    Hi, everyone.

    I'm developing a web site which sends information to the sql server. Though column's property in the sql server is set to "varchar", it accepts any type of characters (but returns only eng chars). I need to prevent inserting any characters but english ones from, let's say a textbox, to the sql server.

    I don't want to type an exception for every foreign char:

    if (textbox1.text.contains("й")) ....

    Is there any way to make asp.net BLOCK all chars except (list) instead of ALLOW all chars except (list) ?

    Or maybe an easier way to prevent foreign chars  =)

    P.S. i'm coding in C# but i'll be thankful for VB answer too. 

    Wednesday, August 23, 2006 9:02 AM

All replies