This application was previously created in VS2008 and the last version of Telerik ASP.NET AJAX Controls in it was 2009.2 701. I was able to upgrade the Telerik controls to 2012.3.1016 and VS to 2010 and get the web application to work without problems. When I tried to jump to 2014.2 618 and VS 2013 I received this error. With some difficulty I was able to restore back to the 2012.3.1016 point in my application. I thought if I tried to edge towards the 2014 version of the controls by going through a 2013 version, I might be able to make it without this error. No such luck.
The column in the code listed below is hidden. We have found that if it is made visible, then the code works.
The error message content is "Message=Conversion from string " " to type 'Integer' is not valid.". Below is the sub, with the line bolded, where the error occurs:
Could someone shed some light on this and perhaps a solution? I would like to upgrade the controls all the way to the current version, if I can find a solution. Thanks for your help.
The column in the code listed below is hidden. We have found that if it is made visible, then the code works.
The error message content is "Message=Conversion from string " " to type 'Integer' is not valid.". Below is the sub, with the line bolded, where the error occurs:
Private Sub RadGrid1_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGridGrants.ItemCommand
'-- Navigate to the grant edit form (edit mode)
Dim theGrantID As Integer = e.Item.Cells(GridColumns.GrantID).Text
Select Case e.CommandName
Case "View"
'-- Edit the selected link
Response.Redirect("GrantEdit.aspx?Action=View&GrantID=" + theGrantID.ToString)
Case "Edit"
'-- Edit the selected link
Response.Redirect("GrantEdit.aspx?Action=Edit&GrantID=" + theGrantID.ToString)
End Select
End Sub
Could someone shed some light on this and perhaps a solution? I would like to upgrade the controls all the way to the current version, if I can find a solution. Thanks for your help.