skagita

skagita

  • NA
  • 1
  • 0

VB.Net Code translation to C# Code

Oct 12 2004 1:40 AM
Hi all, I would like to translate the following VB .net code lines to c# If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then Dim txtHdnEmpID As TextBox = e.Item.FindControl("txtHEmpID") txtHdnEmpID.Text = e.Item.Cells(1).Text Dim linkCell As TableCell linkCell = (e.Item.Cells(1)) Dim strEmpID = e.Item.Cells(1).Text Dim strForm As String = "EmpDetails.aspx" linkCell.Text = e.Item.Cells(1).Text End If Thanks a Lot in Advance. Cheers, Kagita Srihari

Answers (3)