Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Upper casing
Message
De
24/09/2014 02:29:50
 
 
Information générale
Forum:
CSS
Catégorie:
Style
Titre:
Divers
Thread ID:
01608086
Message ID:
01608138
Vues:
34
This message has been marked as a message which has helped to the initial question of the thread.
>>>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.

As a side issue why are you running salespoint.SalesPointToUpper() twice ? Unless that property is the only one being updated then you should drop the if
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform