473,396 Members | 2,085 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,396 software developers and data experts.

Force uppercase in text field

Hi all,

I'd like to know how to force uppercase characters in an ASP.Net web form
text field. Thanks
Jan 25 '08 #1
3 3655
If you want "real time" checking I believe you would need to use JavaScript.
Otherwise you could check for it on postback and convert lowercase characters
to uppercase behind the scenes. It depends on what you want to accomplish.

"Joseph" wrote:
Hi all,

I'd like to know how to force uppercase characters in an ASP.Net web form
text field. Thanks
Jan 25 '08 #2
I'd like for once the user enters data in the text field for the function to
automatically convert to uppercase once the user leaves the field. Sounds
like JavaScript or does the .Net framework have something for this?

"Danno" wrote:
If you want "real time" checking I believe you would need to use JavaScript.
Otherwise you could check for it on postback and convert lowercase characters
to uppercase behind the scenes. It depends on what you want to accomplish.

"Joseph" wrote:
Hi all,

I'd like to know how to force uppercase characters in an ASP.Net web form
text field. Thanks
Jan 25 '08 #3
At least as of the 2.0 framework there wasn't anything like that that I know
of. It's probably easiest to do this with JavaScript (using OnKeyPress, or
some such).

"Joseph" wrote:
I'd like for once the user enters data in the text field for the function to
automatically convert to uppercase once the user leaves the field. Sounds
like JavaScript or does the .Net framework have something for this?

"Danno" wrote:
If you want "real time" checking I believe you would need to use JavaScript.
Otherwise you could check for it on postback and convert lowercase characters
to uppercase behind the scenes. It depends on what you want to accomplish.

"Joseph" wrote:
Hi all,
>
I'd like to know how to force uppercase characters in an ASP.Net web form
text field. Thanks
Jan 25 '08 #4

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

Similar topics

7
by: Nige | last post by:
Is it possible to convert an item of form field data to uppercase using the toUpperCase() method? What I'm really asking is, how do I reference the data item? -- Nige Please replace YYYY...
2
by: Jon Bergstrom | last post by:
I know that to format text to all caps I can use the capital period symbol, but this seems only to effect how the data looks. In a two letter state field, a mail merge will output lowercase...
8
by: MLH | last post by:
I have a textbox on a form into which an alpha-numeric string of data is entered. I wish to force the casual user, who would sometimes use upper case, sometimes not and sometimes MIX the case -...
3
by: Brian Conway | last post by:
How do I convert a field that is filled in to uppercase within the C3 code? I see the ToUpper in there, but how do I get the text box to convert this to upper when you change focus or move to...
1
by: Beffmans | last post by:
How can I turn the Uppercase mode on in my TextBoxes? ch B. *** Sent via Developersdex http://www.developersdex.com ***
7
by: OHM | last post by:
Hi Guys, I wouldnt normally ask for help on this but Im really strapped for time. Does anyone know how I can force characters in a DataGrid cell to uppercase as they are typed. Cheers - OHM
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...
6
by: feeman | last post by:
I can change a field to upper case by using the after event function and the following code Me. = UCase(Me.) But how can you do it so that the whole form will change to Uppercase, there are...
5
by: =?Utf-8?B?cmtibmFpcg==?= | last post by:
How can I force the users to enter characters in uppercase? I want to do this in a TextBox control of an aspx page. Then I want the same to be moved to inside a GridView control. Thanks.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.