This topic is locked

How to save all data in the database in upper case

7/8/2014 10:14:27 PM
ASPRunner.NET Tips and tricks
admin

To do so add the following code to BeforeAdd/BeforeEdit events (C#):

foreach(var field in values.ToList())

{

values[field.Key] = field.Value.ToString().ToUpper();

}
return true;


If you also want all text to appear in upper case as it being entered add the following to 'Custom CSS' section in Style Editor.

.rnr-control input, .rnr-control select, .rnr-control textarea

{ text-transform: uppercase; }