Пример #1
0
 protected void Clear_Click(object sender, EventArgs e)
 {
     FullName.Text     = "";
     EmailAddress.Text = "";
     Phone.Text        = "";
     //for Lists there are a couple of ways to reset
     //a) manually reset the control SelectionIndex
     //   for the RadioButtonList, set the index  -1
     FullOrPartTime.SelectedIndex = -1;
     //b) most list controls have a built in method to clear
     //   this clearing can be the selection and/or the item contents
     JobList.ClearSelection();
 }