I need to clean a webform but I would like to field the field found a routine in C # you can convert to Cobol . Thank you
protected void Button1_Click(object sender, EventArgs e)
{
LimparControles(this.Page.Form.Controls);
}
public void LimparControles(ControlCollection controles)
{
foreach (Control controle in controles
{
if (controle.GetType() == typeof(TextBox))
((TextBox)controle).Text = string.Empty;
}
}
Translated by Google
Eu preciso limpar um webform mas não gostaria de fazer campo a campo encontrei uma rotina em c# é possível converter para Cobol. Obrigado.



