I have created some code that finds controls in a datalist that is generated from a SQL query. It takes the control and puts the data into a string. Here is the code.
I need to convert that to a decimal. I am using the following code to do this.
I am getting the following error. Input string was not in a correct format.
What am I missing?
Code:
If c0a IsNot Nothing Then
If c0a.[GetType]() Is GetType(TextBox) Then
cb = c0a.ToString()
Code:
IData.Value = Decimal.Parse(cb)
What am I missing?
Comment