Mi sono permesso..
codice:
void Page_Load(object sender, EventArgs e) {
Funzione("viva-html.it");
}
void Funzione(string Campo) {
string Carattere;
int AsciiValue;
Carattere = Campo.Substring( Campo.Length-1, 1 );
byte[] bys = System.Text.Encoding.ASCII.GetBytes(Carattere);
byte by = bys[0];
AsciiValue = Convert.ToInt32(by.ToString());
if ( AsciiValue <= 32 || AsciiValue >= 161 ) {
// se il codice ascii del carattere inserito è >=192
// elimino il carattere inserito
Campo = Campo.Replace(Carattere, null);
}
}