This is a migrated thread and some comments may be shown as answers.

RadMaskeditBox value casting problem

1 Answer 88 Views
MaskedEditBox
This is a migrated thread and some comments may be shown as answers.
Aldemar
Top achievements
Rank 1
Aldemar asked on 20 Feb 2009, 11:13 PM
Hi!

I need to cast value property to double but it generates conversion error


thanks

1 Answer, 1 is accepted

Sort by
0
Aaron
Top achievements
Rank 2
answered on 29 Jul 2009, 08:34 PM
Aldemar,

Perhaps instead of using an explicit cast like this,

double dValue = (double)radMaskedEditBox1.Value; 
 

you could instead try convert the value to a string and then parse it into a double.

double dValue = Double.Parse(radMaskedEditBox1.Value.ToString()); 

Does this help?

Thanks,
Aaron
Tags
MaskedEditBox
Asked by
Aldemar
Top achievements
Rank 1
Answers by
Aaron
Top achievements
Rank 2
Share this question
or