I am currently learning asp.net with c#. My book (like most) is written in vb.net so I am converting it as I go along. All has been fine so far but I have hit a brick wall with the following two lines of code:<BR><BR>strText = Ctype(e.Item.Cells(i).Controls(0), TextBox).Text <BR><BR>If(MyPanel.controls(i).GetType Is GetType(TextBox) then<BR><BR>They seem straightforward enough but I have spent about a day(!) trying to get these two lines to work trying all sorts of variations. If any C# experts can help I would be very grateful.<BR><BR>Thanks,<BR><BR>Nick.