Hi, I've got this line of code in my page. I'm trying to convert an integer from a database to a string.
Dim LeaveID As String = DirectCast(e.DataItem("ID"), String)
But it throws this error:
Unable to cast object of type 'System.Int32' to type
What do I need to change?
Many Thanks
...
Go to the complete details ...