S
sck10
Hello,
I am converting some code from VB to C# and ran into a conversion error:
Cannot implicitly convert type 'object' to
'System.Web.UI.WebControls.RadioButtonList'. An explicit conversion exists
(are you missing a cast?)
Any help with this would be appreciated...
sck10
VB
======
Protected Sub rblApprovalStatus_DataBinding(ByVal sender As Object, ByVal e
As EventArgs)
Dim rlist As RadioButtonList = sender
End Sub
C#
=======
protected void rblApprovalStatus_DataBinding(object sender, EventArgs e)
{
RadioButtonList rlist = sender;
}
Error Statement
I am converting some code from VB to C# and ran into a conversion error:
Cannot implicitly convert type 'object' to
'System.Web.UI.WebControls.RadioButtonList'. An explicit conversion exists
(are you missing a cast?)
Any help with this would be appreciated...
sck10
VB
======
Protected Sub rblApprovalStatus_DataBinding(ByVal sender As Object, ByVal e
As EventArgs)
Dim rlist As RadioButtonList = sender
End Sub
C#
=======
protected void rblApprovalStatus_DataBinding(object sender, EventArgs e)
{
RadioButtonList rlist = sender;
}
Error Statement