G
Guest
Hi
I need to check the asc char code of a textarea in C#. I used charCodeAt in js before. However, which attribute should I use in C# and is InnerText correct
[code
int a = textarea.InnerText.Length
for (i = 0; i< a; i++) {
if (textarea.InnerText.charCodeAt(i) > 127 || textarea.InnerText.charCodeAt(i) < 0
// do sth ;
}
}
[/code
Thanks
I need to check the asc char code of a textarea in C#. I used charCodeAt in js before. However, which attribute should I use in C# and is InnerText correct
[code
int a = textarea.InnerText.Length
for (i = 0; i< a; i++) {
if (textarea.InnerText.charCodeAt(i) > 127 || textarea.InnerText.charCodeAt(i) < 0
// do sth ;
}
}
[/code
Thanks