473,320 Members | 2,097 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

How to validate input characters encoding

Hello:

How can I validate the character encoding of the textbox in ASP.Net form?
For instance, when the user fills out a form, I need to be sure that he is
typing in English (I mean uses Latin characters - not Russian, Hebrew etc.)

Thank you,

--
Peter Afonin
Nov 18 '05 #1
4 1835
Perhaps this will help:

http://samples.gotdotnet.com/quickst...lus/doc/intern
ationalization.aspx
-----Original Message-----
Hello:

How can I validate the character encoding of the textbox in ASP.Net form?For instance, when the user fills out a form, I need to be sure that he istyping in English (I mean uses Latin characters - not Russian, Hebrew etc.)
Thank you,

--
Peter Afonin
.

Nov 18 '05 #2
Sorry, wrong link. I meant to send you this example:

http://msdn.microsoft.com/library/default.asp?
url=/library/en-
us/cpref/html/frlrfsystemwindowsformslistviewclassafterlab
eledittopic.asp

Which has a code example you could use.
-----Original Message-----
Hello:

How can I validate the character encoding of the textbox in ASP.Net form?For instance, when the user fills out a form, I need to be sure that he istyping in English (I mean uses Latin characters - not Russian, Hebrew etc.)
Thank you,

--
Peter Afonin
.

Nov 18 '05 #3
Thank you, Keith. I'll try to use it.

Peter

"Keith" <ke***@keithadler.com> wrote in message
news:7f****************************@phx.gbl...
Sorry, wrong link. I meant to send you this example:

http://msdn.microsoft.com/library/default.asp?
url=/library/en-
us/cpref/html/frlrfsystemwindowsformslistviewclassafterlab
eledittopic.asp

Which has a code example you could use.
-----Original Message-----
Hello:

How can I validate the character encoding of the textbox

in ASP.Net form?
For instance, when the user fills out a form, I need to

be sure that he is
typing in English (I mean uses Latin characters - not

Russian, Hebrew etc.)

Thank you,

--
Peter Afonin
.

Nov 18 '05 #4
Let me answer my own question. I found an excellent validation string in the
Regular Expression Library:
http://www.regxlib.com/REDetails.aspx?regexp_id=310

It validates the length of the input string and insures that all characters
are Latin (although this probably wasn't a purpose of this validation
string). I tested it with the RegularExpressionValidator, and it worked
great.

Peter

"Keith" <ke***@keithadler.com> wrote in message
news:7f****************************@phx.gbl...
Sorry, wrong link. I meant to send you this example:

http://msdn.microsoft.com/library/default.asp?
url=/library/en-
us/cpref/html/frlrfsystemwindowsformslistviewclassafterlab
eledittopic.asp

Which has a code example you could use.
-----Original Message-----
Hello:

How can I validate the character encoding of the textbox

in ASP.Net form?
For instance, when the user fills out a form, I need to

be sure that he is
typing in English (I mean uses Latin characters - not

Russian, Hebrew etc.)

Thank you,

--
Peter Afonin
.

Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ray Tayek | last post by:
hi, fooling around with xmlspy (which seems pretty broken when *doing* xslt's). trying to validate in java using code from http://cermics.enpc.fr/doc/java/j2eetutorial-1.4/doc/JAXPSAX13.html...
13
by: Eddie | last post by:
I need to validate a text input field. I just want to say if user enters 93101 or 93102 or 93103 or 93105 or 93106 or 93107 or 93108 or 93109 or 93110 or 93111 or 93116 or 93117 or 93118 or...
6
by: Peter | last post by:
Hello: How can I validate the character encoding of the textbox in a form? For instance, when the user fills out a form, I need to be sure that he is typing in English (I mean uses Latin...
1
by: gimme_this_gimme_that | last post by:
Is there a way that Javascript can validate that text in a textarea is UTF-8?
7
by: Georg J. Stach | last post by:
Hi, as mentioned above I'd like to validate a simple XML-document with a simple DTD. For this, I use Java and Xerces. But, when I have tags of this form: <tag>some characters in here</tag> ...
4
by: Carlo Marchesoni | last post by:
I really don't achieve to read a simple 'input.txt' with the following content: Jürg (Hex: 4a fc 72 67) to an identical 'output.txt' I do the following (and tried with tons of different...
3
by: Mike Logan | last post by:
How do I validate messages? If my schema has a simpleType with facets like "minExclusive" and "maxLength" will the .Net framework validate the message before running the web service? This is what...
44
by: Kulgan | last post by:
Hi I am struggling to find definitive information on how IE 5.5, 6 and 7 handle character input (I am happy with the display of text). I have two main questions: 1. Does IE automaticall...
5
by: Johannes Bauer | last post by:
Hello group, I'm trying to use a htmllib.HTMLParser derivate class to parse a website which I fetched via httplib.HTTPConnection().request().getresponse().read(). Now the problem is: As soon as...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.