CType equivalent in C#?

Results 1 to 2 of 2

Thread: CType equivalent in C#?

  1. #1
    Join Date
    Dec 1969

    Default CType equivalent in C#?

    I am trying to rewrite some code I have in VB.NET to C#. <BR><BR>This one line has my stumped...I&#039;ve successfully changed other lines that require a conversion, but they do not have access tot he ".Checked" property. Here is the code:<BR><BR>[code language="VB.NET"]<BR> chkDiscontinued.Checked = CType(e.Item.Cells(5).FindControl("chkDiscontinued Grid"), CheckBox).Checked<BR>[/code]<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: CType equivalent in C#?

    [code language="C#"]<BR>chkDiscontinued.Checked = ((CheckBox)e.Item.Cells(5).FindControl("chkDiscont inuedGrid")).Checked<BR>[/code]<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts