![]() |
|
|
|||||||
![]() |
ASP Net - Web Textbox CharacterCasing?? |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
The web textbox doesn't have a CharacterCasing property as does the forms
textbox. Any way cause characters typed in to be Upper case? Thanks, T Tina |
|
|
|
|
#2 |
|
Posts: n/a
|
"Tina" <> wrote in message
news:... > The web textbox doesn't have a CharacterCasing property as does the forms > textbox. Any way cause characters typed in to be Upper case? I use CSS to do this. <head runat="server"> <link href="StyleSheet.css" rel="stylesheet" type="text/css" /> </head> <body> <form id="form1" runat="server"> <asp:TextBox ID="TextBox1" runat="server" CssClass="UpperCase"></asp:TextBox> <asp:TextBox ID="TextBox2" runat="server" CssClass="ProperCase"></asp:TextBox> </form> </body> Contents of StyleSheet.css ..UpperCase { text-transform:uppercase; } ..ProperCase { text-transform:capitalize; } Greg Greg Burns |
|
|
|
#3 |
|
Posts: n/a
|
You need javascript to format the text as it is typed. Or convert to upper
case on the server. "Tina" <> wrote in message news:... > The web textbox doesn't have a CharacterCasing property as does the forms > textbox. Any way cause characters typed in to be Upper case? > Thanks, > T > Showjumper |
|
|
|
#4 |
|
Posts: n/a
|
Greg,
That worked great! Thanks T "Greg Burns" <> wrote in message news:%... > "Tina" <> wrote in message > news:... >> The web textbox doesn't have a CharacterCasing property as does the forms >> textbox. Any way cause characters typed in to be Upper case? > > I use CSS to do this. > > <head runat="server"> > <link href="StyleSheet.css" rel="stylesheet" type="text/css" /> > </head> > <body> > <form id="form1" runat="server"> > <asp:TextBox ID="TextBox1" runat="server" > CssClass="UpperCase"></asp:TextBox> > <asp:TextBox ID="TextBox2" runat="server" > CssClass="ProperCase"></asp:TextBox> > </form> > </body> > > Contents of StyleSheet.css > > .UpperCase > { > text-transform:uppercase; > } > > .ProperCase > { > text-transform:capitalize; > } > > Greg > Tina |
|
|
|
#5 |
|
Posts: n/a
|
an interesting side effect....
if I have a regular expression tied to that field and the user enters lower case, the RE gets the lower case but the textbox gets uppercase. T "Greg Burns" <> wrote in message news:%... > "Tina" <> wrote in message > news:... >> The web textbox doesn't have a CharacterCasing property as does the forms >> textbox. Any way cause characters typed in to be Upper case? > > I use CSS to do this. > > <head runat="server"> > <link href="StyleSheet.css" rel="stylesheet" type="text/css" /> > </head> > <body> > <form id="form1" runat="server"> > <asp:TextBox ID="TextBox1" runat="server" > CssClass="UpperCase"></asp:TextBox> > <asp:TextBox ID="TextBox2" runat="server" > CssClass="ProperCase"></asp:TextBox> > </form> > </body> > > Contents of StyleSheet.css > > .UpperCase > { > text-transform:uppercase; > } > > .ProperCase > { > text-transform:capitalize; > } > > Greg > Tina |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Get datagrid textbox value | kanchangorak | Software | 0 | 03-11-2009 11:11 AM |
| VB .NET: How to extract the value of a textbox in a GridView TemplateField? | k3nz0 | General Help Related Topics | 1 | 03-01-2009 06:26 AM |
| gridview textbox value refresh | apdbrl1 | Software | 1 | 06-12-2008 06:29 PM |
| ASP.NET VB Using ItemDataBound to create textbox in datagrid rows. | smi59550 | General Help Related Topics | 0 | 01-18-2008 07:42 PM |
| How do find out if a button was clicked before the textchanged event of textbox fires | Jack | General Help Related Topics | 0 | 10-27-2006 10:19 AM |