This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, I've been trying to bind a form to the model in a asp.net mvc application. I've used the Minscape.Lightspeed.Mvc library and it only work with String properties, so i downloaded the source code to debug the library. I'm getting "ArgumentException" whenever i it to bind an integer property
Do you have a work around for this error?
A possible solution could be something like that:
The only proble is that the StringConverter doesn't work well so i've made a case whit the differtent property types. Thanks |
|
|
Hi Ariel, If you have a look at bindResult which is a ValueProviderResult instance it has a number of ConvertTo methods already available on it for handling this so I would have a look at leveraging those. If you are able to create a patch and a couple of tests for this it would be great to look at applying this back to the community source.
Jeremy |
|