Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Upper casing
Message
 
 
À
23/09/2014 13:56:41
Antonio Lopes (En ligne)
BookMARC
Coimbra, Portugal
Information générale
Forum:
CSS
Catégorie:
Style
Titre:
Divers
Thread ID:
01608086
Message ID:
01608119
Vues:
32
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform