need2progm
Programmer
I need this vb.net code to be in c#
If e.Item.ItemType = ListItemType.AlternatingItem Or e.Item.ItemType = ListItemType.Item Then
Dim r As Label
r = e.Item.FindControl("Label2"
r.Text = "<input type=radio name='myradiogroup' value=" & e.Item.Cells(1).Text & " id= e.item.c>"
End If
I have .. with errors
//error can not implicitly convert to bool
if(e.Item.ItemType = ListItemType.AlternatingItem || e.Item.ItemType = ListItemType.Item)
{
System.Web.UI.WebControls.Label lblR = new System.Web.UI.WebControls.Label();
//Error can not implicitly convert control to a label control
lblR = e.Item.FindControl("Label2"
lblR.Text = "<INPUT type='radio' name='radiogroup' value='&e.Item.Cells[1].Text'& id=e.item.c> ";
}
Can anyone help me? Do you know of a tool on the web that I can download?
If e.Item.ItemType = ListItemType.AlternatingItem Or e.Item.ItemType = ListItemType.Item Then
Dim r As Label
r = e.Item.FindControl("Label2"
r.Text = "<input type=radio name='myradiogroup' value=" & e.Item.Cells(1).Text & " id= e.item.c>"
End If
I have .. with errors
//error can not implicitly convert to bool
if(e.Item.ItemType = ListItemType.AlternatingItem || e.Item.ItemType = ListItemType.Item)
{
System.Web.UI.WebControls.Label lblR = new System.Web.UI.WebControls.Label();
//Error can not implicitly convert control to a label control
lblR = e.Item.FindControl("Label2"
lblR.Text = "<INPUT type='radio' name='radiogroup' value='&e.Item.Cells[1].Text'& id=e.item.c> ";
}
Can anyone help me? Do you know of a tool on the web that I can download?