Eliminate Upper Case

M

Mariame

Hi Everyone,
Is There a way to eliminate upper case, so the user could only write Lower
Case or to transfer the Upper Case String to lower case in Visual Basic ????

Thx in Adv.
 
S

Shawn

I'm using this approach myself, but it's just for appearance. If the user
writes using uppercase, although it will show as lowercase, it will still be
in uppercase when you get the value in code behindso you have to convert it:
TextBox1.Text.ToLower()

Shawn
 
J

Juan T. Llibre

Use the .Net Framework System.String class.

YourString.ToLower

To convert to Upper case, use :
YourString.ToUpper
 
E

Eliyahu Goldin

If you mean the user typing in the browser window, it is a client task that
can be solved with javascript event handlers.

Eliyahu
 
K

Klaus via DotNetMonster.com

You are right. You have to convert the string by using the ToLower() method
in the server side code.
Anyway, I like this approach more than the one using JavaScript.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top