Eliminate Upper Case

  • Thread starter Thread starter Mariame
  • Start date Start date
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.
 
<input style="text-transform:lowercase;"></input>
 
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
 
Use the .Net Framework System.String class.

YourString.ToLower

To convert to Upper case, use :
YourString.ToUpper



Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================
 
If you mean the user typing in the browser window, it is a client task that
can be solved with javascript event handlers.

Eliyahu
 
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

Back
Top