Hi,
With the textboxes in a RadGrid, it is possible to deal with an empty string value, that needs to be stored to an Integer value?
I am assigning a texbox to a Integer variable, though that textbox can be blank:
The variable CodEnd will then be used as parameter to pass into an UPDATE SQL query.
I tried setting ConvertEmptyStringToNull="True" in the textbox, though I still got the following error:
Conversion from string "" to type 'Integer' is not valid
Any advice please?
Thank you, Ida
With the textboxes in a RadGrid, it is possible to deal with an empty string value, that needs to be stored to an Integer value?
I am assigning a texbox to a Integer variable, though that textbox can be blank:
Dim
CodEnd As Integer? = TryCast(edit("CodEnd").Controls(0), TextBox).Text
The variable CodEnd will then be used as parameter to pass into an UPDATE SQL query.
I tried setting ConvertEmptyStringToNull="True" in the textbox, though I still got the following error:
Conversion from string "" to type 'Integer' is not valid
Any advice please?
Thank you, Ida