G
Guest
Hi,
I am having a problem with the following line of code:
oDR("UIGroupTypeID") = CType(e.Item.Cells(3).Controls(0),
DropDownList).SelectedValue
The error I get is the Cast is not valid.
Any ideas?
I have tried to get the actual type at runtime just before the error occurs
with this line of code:
Dim s As String =
e.Item.Cells(3).Controls(0).GetType.UnderlyingSystemType.ToString
The value of s is System.Web.UI.LiteralControl
Thanks,
Chris Lane
I am having a problem with the following line of code:
oDR("UIGroupTypeID") = CType(e.Item.Cells(3).Controls(0),
DropDownList).SelectedValue
The error I get is the Cast is not valid.
Any ideas?
I have tried to get the actual type at runtime just before the error occurs
with this line of code:
Dim s As String =
e.Item.Cells(3).Controls(0).GetType.UnderlyingSystemType.ToString
The value of s is System.Web.UI.LiteralControl
Thanks,
Chris Lane