Skip to main content

Hi

I have a Smart Object which has a decimal property. I want to set it in my code. I tried with a dot and a comma as decimal separator (100.1 and 100,1) but i always have a SmartObject Exception.

My SQL Server is US but coding is french (ie comma as decimal separator).

 

Anyone has an idea ?

Thanks for your replies 

Hmm, besides the obvious solution to run your code on a US locale server, the other *possibility* perhaps would be to change the culture of the app (or page).


The following links might be helpful.


http://bytes.com/forum/thread333686.html


http://en.csharp-online.net/Localization_Like_the_Pros%E2%80%94Globalization_and_Localization_with_ASP.NET


 


I just saw that the smartobject has every property value exposed as a string which is (IMHO) a poor choice for the client API.

It makes passing number and date values a real pain from my client application to the smart object service broker.

Is there any rationale for that?

Is there any way to get smart object property value exposed as object? (like it works for data fields)

  


Reply