webform:

 

 

.Form.Controls)

{

if (control is System.Web.UI.WebControls.TextBox)

{

TextBox txt
= (TextBox)control;

txt.Text
= "fdsafds";// string.Empty;

}

}

 

 

winform:

.Controls)
{
if (control is System.Windows.Forms.TextBox)
{
System.Windows.Forms.TextBox tb
= (System.Windows.Forms.TextBox)control ;
tb.Text
= String.Empty ;
}
}

相关文章:

  • 2021-07-22
  • 2022-01-31
  • 2021-11-23
  • 2021-12-08
  • 2021-11-21
  • 2021-10-16
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-07
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案