473,748 Members | 8,376 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1183
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******** ******@TK2MSFTN GP14.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:lower case;"></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.T oLower()

Shawn

"Klaus via DotNetMonster.c om" <fo***@DotNetMo nster.com> wrote in message
news:b1******** *************** *******@DotNetM onster.com...
<input style="text-transform:lower case;"></input>

Nov 19 '05 #4
Use the .Net Framework System.String class.

YourString.ToLo wer

To convert to Upper case, use :
YourString.ToUp per

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******** ******@TK2MSFTN GP14.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
5066
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 in HTML DOM element names are all upper-case, whereas in Core DOM (used for the XHTML documents) element names are lower-case. When I use a lower-case xpath, e.g. /head
4
13068
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
11226
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
12558
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 enters any char in small case...during that entry it should convert in upper case... It is very easy in VB6..In VB6 you just need to convert the Ascii value to char ---> then to Ucase ---> then char to Ascii again...this can be done in keypress...
2
7052
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 appear in upper case, which is what I want. But with a ComboBox, if I do this: ComboBox TCombo; this.TCombo.CharacterCasing = CharacterCasing.Upper;
2
10301
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 upper case, but in .net the key is read only.
19
26448
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 saw some mention that the HTML DOM uses upper case for markup elements. So, should I worry about what this means? I am inclined to go with lower case, for two reasons. Easier to change if I subsequently want to use XHTML.
8
20313
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 , double, triple byte etc). I need to convert to upper case only those characters which has got upper case. ie if an user enter bot english and japanese characters in the text field, then I should convert only english characters, not japanese.
5
21450
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 help system and can't find any help on formatting text. There's plenty of help formatting numbers, dates, and times, though. I'm in the phase of converting from 6 to Net and it seems that even the simplest thing is very, very complicated. And it...
0
8991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9541
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9370
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9247
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4602
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3312
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.