Sunday, March 11, 2012

Passing null to a Nullable<int> parameter

I knew it! It's impossible...

When is the next version of AJAX Extensions due?


I was searching for a solution for a similar problem, but I think the only way to solve it is to pass some invalid value for the valuetype.

I use -1 for integers and parse them as null's serverside.

Don't expect the next version to ship anytime soon. I believe it to be around the time Orcas ships perhaps...


I think what you need is an special Converter to convert this dataType for Json Serialization.

No comments:

Post a Comment