>
>@if (ViewData.ModelMetadata.ModelType.ToString()
>
>
>And I am not sure how to finish it. I want to test it against (first 3 chars to be Int or other numerical types (I guess I need to test for decimal)?
Are you talking about three sequential characters which are in the range 0..9, or a plus sign, minus sign, or decimal?
I don't know C#'s class and library functions very well, but in Java there is a String class function that is substr()-like. You can use this function to extract those three bytes and pass them to a test function which identifies if they're in the ASCII range '0' .. '9', or one of the other valid characters (+-.).
Don't know if this helps....