Im trying to set a RadNumericTextbox to the value of 0 which is coming
from the database. I keep getting the following error though when the
value is trying to bind to the Rad control.
'Specified cast is not valid.'
The data type is an Integer which is set using the code below. If i change the value of Floors to be double this works fine for some reason?! Surely these controls can use integer data types?
Here is my code for the RadNumericTextbox
Look forward to hearing your solutions.
Thanks in advance.
David
'Specified cast is not valid.'
The data type is an Integer which is set using the code below. If i change the value of Floors to be double this works fine for some reason?! Surely these controls can use integer data types?
Private _Floors As Integer |
Public Property Floors() As Integer |
Get |
Return _Floors |
End Get |
Set(ByVal value As Integer) |
_Floors = value |
End Set |
End Property |
Here is my code for the RadNumericTextbox
<telerik:RadNumericTextBox |
Skin="" |
Type="Number" |
ID="Floors" |
Value='<%# Bind("Floors") %>' |
runat="server" /> |
Look forward to hearing your solutions.
Thanks in advance.
David