473,396 Members | 1,683 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.

Convert MyTextField.Text to "all caps"

Hello,

I am trying to force the formatting of a Post Code field on my form, and
require that all post codes are processed as FULL CAPS. I do not want to
force the user to type on all caps, so would like it if onBlur, or onSubmit,
that for example "im1 2ez" becomes "IM1 2EZ".

Any help appreciated!!

Gary.

Jan 26 '07 #1
2 9548
I presume you are storing in a db? do it in your sql statement. Or use :

string s = "me";

s.ToUpper();

in c#
"Gary" <g@nospam.comwrote in message
news:eF**************@TK2MSFTNGP03.phx.gbl...
Hello,

I am trying to force the formatting of a Post Code field on my form, and
require that all post codes are processed as FULL CAPS. I do not want to
force the user to type on all caps, so would like it if onBlur, or
onSubmit, that for example "im1 2ez" becomes "IM1 2EZ".

Any help appreciated!!

Gary.

Jan 26 '07 #2
"Daniel" <no****@pokercat.co.ukwrote in message
news:Ol**************@TK2MSFTNGP04.phx.gbl...
>I presume you are storing in a db? do it in your sql statement. Or use :

string s = "me";

s.ToUpper();

in c#

Works a charm,

Thanks.

G.

Jan 26 '07 #3

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

Similar topics

4
by: Matt | last post by:
In ASP page, there is a "SELECT ALL" button, when user click it, it will select all checkboxes. I am not sure should I use client-side code to do that? the following is my approach but it didnt...
0
by: Seb Delcampe | last post by:
Hello, I am facing two problems with Full-text search. 1° My query looks like: SELECT id, title FROM myTable WHERE ((MATCH(title) AGAINST ('-myword' IN BOOLEAN MODE))) I thought this...
4
by: KJ | last post by:
My xslt has xsl:templates that match a large majority of the xml in our xml files. What I would like to do is create a test expression that matches any of the tags or text that these templates...
3
by: Adam Toline | last post by:
In reference to the following: http://www.bellecose.com/form.htm At the top of each column there is a box for "All". When one is checked I need to check all of (and only) those boxes...
6
by: GSteven | last post by:
(as formerly posted to microsoft.public.access.forms with no result) I've created a continuous form which is based on a straightforward table (ex - customers - 100 records). On the form there is...
4
by: meganrobertson22 | last post by:
Hi Everyone- I have a question about how to add and then use the "All" selection in a combo box. I am trying to figure out how to: (1) add "All" as a selection to a combo box and then (2)...
3
by: google | last post by:
This is something I've done plenty of times in '97, but I can't seem to get it to work correctly in Access 2003. Say, for example, I have a form with an unbound combobox, the data source is a...
5
by: Steven | last post by:
Can anyone tell me how to toggle the "Caps Lock" key? Thanks in advance
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
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,...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.