public void clear() { lblage.Text = ""; lblclosingbirds.Text = ""; lbltypeoffeed.Text = ""; lbltypeoffeedf.Text = ""; lblstdfeed.Text = ""; lblstdfeedf.Text = ""; lblstdhd.Text = ""; lblstdhe.Text = ""; lblExpeggs.Text = ""; lblbirdsf.Text = ""; txtacteggs.Text = ""; txtactfeed.Text = ""; txtactfeedf.Text = ""; txtfemaleclosingstock50.Text = ""; txtfemaleclosingstock70.Text = ""; txtmale50kgcstock.Text = ""; txtmale70kgscstock.Text = ""; txtmort.Text = ""; txtmortf.Text = ""; txtuseeggs.Text = ""; ddlFemaleFeedtype.SelectedValue = "0"; ddlMaleFeedtype.SelectedValue = "0"; }
void CleareAllcontrolsRecursive(Control container) { foreach (var control in container.Controls) { if (control is TextBox) { ((TextBox)control).Text = string.Empty; } if (control is DropDownList) { ((DropDownList)control).SelectedValue = "0"; } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)