Exemplo n.º 1
0
 protected void btnSave_Click(Object Sender, EventArgs e)
 {
     oVMWare.DeleteFolders(intID);
     foreach (RepeaterItem ri in rptLocations.Items)
     {
         CheckBox chkYes = (CheckBox)ri.FindControl("chkYes");
         if (chkYes.Checked == true)
         {
             Label lblLocation    = (Label)ri.FindControl("lblLocation");
             Label lblClass       = (Label)ri.FindControl("lblClass");
             Label lblEnvironment = (Label)ri.FindControl("lblEnvironment");
             oVMWare.AddFolders(intID, Int32.Parse(lblClass.Text), Int32.Parse(lblEnvironment.Text), Int32.Parse(lblLocation.Text));
         }
     }
     Response.Redirect(Request.Url.PathAndQuery);
 }