Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Upper casing
Message
 
 
To
23/09/2014 13:56:41
General information
Forum:
CSS
Category:
Styling
Title:
Miscellaneous
Thread ID:
01608086
Message ID:
01608119
Views:
33
>>Hi everybody,
>>
>>I found in our code
>>
>>
>>style="text-transform: uppercase"
>>
>>It seems to be working fine as the value looks upper case. However, it is still saved in the original casing and I want it to be saved in upper case as well.
>>
>>Should I do it manually in javascript code?
>>
>>Thanks in advance.
>
>If your Javascript is client side and you require that data be uppercased, then you should uppercase it on the server. It really doesn't matter how it is being sent from the browser.

Very strange, but it's not working.

I have this code:
  if (salespoint.Salespoint != salespoint.Salespoint.ToUpper())
                salespoint.Salespoint = salespoint.Salespoint.ToUpper();
            _salespointAdapter.Update(salespoint);
            salespointViewModel = AutoMapper.Mapper.Map<SalesPt, EditSalespointViewModel>(salespoint);
I can see that Salespoint property (which is a PK) is changing on the second line of this code. Yet after update it remains lower case.

More tests revealed that primary key is not included into the UPDATE command for the columns to be changed.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform