.UpperCase { text-transform:uppercase; }but the data behind the scenes that will be saved back to database or used in search. So I tried the following with javascript. It seems to work, but when I compile, I get error message:
Message 1 Validation (ASP.Net): Attribute 'onkeyup' is not a valid attribute of element 'mmTextBox'. N:\DEV_TEST\PRESCHAL\ASP.NET\PresChalWebApp\PresChalWebApp\App_Pages\CustLookUp.aspx 64 33 PresChalWebApp <mm:mmTextBox ID="txtState" runat="server" Width="30px" CssClass="TextBox-ReadWrite UpperCase" AutoPostBack="true" onkeyup="javascript:this.value=this.value.toUpperCase();" > </mm:mmTextBox>FWIW, there appears to be a new property ‘charactercasing’ in .NET 4 on textbox controls. However, if I try to use it on an mm:mmTextBox, it is not recognized. I did not try it to see if it works anyway, perhaps I should, since the above seems to work. Anyway quick and dirty way to make these messages disappear? I am going to be putting the upper casing on a LOT of textboxes.