vb:  CType(obj,TextBox)    CType(Sender,Control)
      例如 :  Dim tb1 As TextBox = CType(e.Item.Cells(1).Controls(1), TextBox)
c#:  (TextBox)obj
       
    例如 : TextBox tb = (TextBox) e.Item.Cells[2].Controls[0]; 
           TextBox tb = (TextBox) e.Item.Cells[2].Controls.FindControl("TextBoxID");

Object o;
TextBox tb = (TextBox)o;
TextBox tb2 = o as TextBox;

相关文章:

  • 2022-12-23
  • 2021-07-12
  • 2021-10-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-19
猜你喜欢
  • 2022-02-18
  • 2021-12-19
  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
相关资源
相似解决方案