473,382 Members | 1,425 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,382 software developers and data experts.

Eliminate Upper Case

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.
Nov 19 '05 #1
5 1164
If you mean the user typing in the browser window, it is a client task that
can be solved with javascript event handlers.

Eliyahu

"Mariame" <ma************@hotmail.com> wrote in message
news:OW**************@TK2MSFTNGP14.phx.gbl...
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.

Nov 19 '05 #2
<input style="text-transform:lowercase;"></input>
Nov 19 '05 #3
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

"Klaus via DotNetMonster.com" <fo***@DotNetMonster.com> wrote in message
news:b1******************************@DotNetMonste r.com...
<input style="text-transform:lowercase;"></input>

Nov 19 '05 #4
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...
======================

"Mariame" <ma************@hotmail.com> wrote in message
news:OW**************@TK2MSFTNGP14.phx.gbl...
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.

Nov 19 '05 #5
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.

--
Message posted via http://www.dotnetmonster.com
Nov 19 '05 #6

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

Similar topics

3
by: Johannes Koch | last post by:
Hi there, I'd like to apply an xpath to both HTML and XHTML documents. First I create a DOM document with a Java DOM parser, then apply the xpath with Xalan's XPathAPI class. The problem is that...
4
by: programmerforhire | last post by:
Hello all, Is there a way to setup an ms-access table so that when I enter text in the 'datasheet' mode, it will automatically be converted tp upper case. Or must I use a Form for this? rex
17
by: Janice | last post by:
char* line = "abcd"; How to convert the line to upper case and print? Any option for printf to do this? Thanx
6
by: Manish | last post by:
In my application there is need for only upper case chars.. Currently I am making entry to upper case when user leaves focus of the text control. I want to do some modification here...When user...
2
by: Richard MSL | last post by:
How do you make a ComboBox force casing to uppercase? With a TextBox, I do this: TextBox txtName; this.txtName.CharacterCasing = CharacterCasing.Upper; And it makes whatever the user types...
2
by: Richard Keller | last post by:
How can I only allow user to enter upper case letters into a text box, and if he enters a lower case letter, change it to upper case. in vb6 I would use the keypress event and change the key to...
19
by: Eric Lindsay | last post by:
Should HTML 4.01 Strict markup be done in upper case or in lower case? I understand that HTML allows either upper or lower case. I also notice that XHTML apparently requires lower case. However I...
8
by: csanjith | last post by:
Hi, i have a situaion where i need to convert the characters entered in an text field to upper case using C. The configuration id utf8 environment in which user can enter any character (single ,...
5
by: bob | last post by:
Now this ought to be a simple matter. But nothing's simple in the Net world, I'm finding. In vb6 you could use "!" to force text to upper case in the format function. I've searched the vb.net...
1
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
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.