Hi,
I have a radnumeric input control inside a formview. I want to bind into it, using #Bind syntax, and also to dynamically set the max value using inline code.
This is the radnumericInput:
which returns:
"Specified cast is not valid." this is what happends when i try to set the value. The binded value (i check in the debugger) is 0.
When I add an inline code:
I get:
Cannot create an object of type 'System.Double' from its string representation '<%= Convert.ToDouble(RecordingConfigurationManager.sysConfig.GetLicensedChannels(configuration.getCaptureType())) %>' for the 'MaxValue' property.
Can you guide me how to use the control dynamically?
thanks,
I have a radnumeric input control inside a formview. I want to bind into it, using #Bind syntax, and also to dynamically set the max value using inline code.
This is the radnumericInput:
<telerik:RadNumericTextBox ID="txtUsedChannels" runat="server" Value='<%# Bind("txtUsedChannels") %>' ShowSpinButtons="true" MinValue="0" MaxValue="5" > |
</telerik:RadNumericTextBox> |
which returns:
"Specified cast is not valid." this is what happends when i try to set the value. The binded value (i check in the debugger) is 0.
When I add an inline code:
<telerik:RadNumericTextBox ID="txtUsedChannels" runat="server" Value='12' ShowSpinButtons="true" MinValue="0" MaxValue="<%= SomeFunction(someCodeBehindArg) %>" > |
</telerik:RadNumericTextBox> |
I get:
Cannot create an object of type 'System.Double' from its string representation '<%= Convert.ToDouble(RecordingConfigurationManager.sysConfig.GetLicensedChannels(configuration.getCaptureType())) %>' for the 'MaxValue' property.
Can you guide me how to use the control dynamically?
thanks,