fix: add support of lithuanian characters to "Practice.ValidWeb"
This commit is contained in:
parent
e360ae8034
commit
ee066855b6
@ -46,10 +46,10 @@ namespace ValidWeb
|
|||||||
protected void Button1_Click(object sender, EventArgs e)
|
protected void Button1_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
string name = TextBox1.Text;
|
string name = TextBox1.Text;
|
||||||
if (Regex.IsMatch(name, @"[^a-zA-Z]")) { return; }
|
if (Regex.IsMatch(name, @"[^a-zA-ZąčęėįšųūžĄČĘĖĮŠŲŪŽ]")) { return; }
|
||||||
|
|
||||||
string surname = TextBox2.Text;
|
string surname = TextBox2.Text;
|
||||||
if (Regex.IsMatch(surname, @"[^a-zA-Z]")) { return; }
|
if (Regex.IsMatch(surname, @"[^a-zA-ZąčęėįšųūžĄČĘĖĮŠŲŪŽ]")) { return; }
|
||||||
|
|
||||||
string school = TextBox3.Text;
|
string school = TextBox3.Text;
|
||||||
string age = DropDownList1.Text;
|
string age = DropDownList1.Text;
|
||||||
|
Loading…
Reference in New Issue
Block a user