protected void btnAdd_Click(Object Sender, EventArgs e)
 {
     if (intID == 0)
     {
         oServerName.AddComponent(txtName.Text, txtCode.Text, txtFactoryCode.Text, txtFactoryCodeSpecific.Text, txtZeusCode.Text, (radIIS.Checked ? 1 : 0), (radWeb.Checked ? 1 : 0), (radSQL.Checked ? 1 : 0), (radDatabase.Checked ? 1 : 0), (chkResetSAN.Checked ? 1 : 0), (oServerName.GetComponents(0).Tables[0].Rows.Count + 1), (chkEnabled.Checked ? 1 : 0));
     }
     else
     {
         oServerName.UpdateComponent(intID, txtName.Text, txtCode.Text, txtFactoryCode.Text, txtFactoryCodeSpecific.Text, txtZeusCode.Text, (radIIS.Checked ? 1 : 0), (radWeb.Checked ? 1 : 0), (radSQL.Checked ? 1 : 0), (radDatabase.Checked ? 1 : 0), (chkResetSAN.Checked ? 1 : 0), (chkEnabled.Checked ? 1 : 0));
     }
     if (Request.Form[hdnOrder.UniqueID] != "")
     {
         string strOrder = Request.Form[hdnOrder.UniqueID];
         int    intCount = 0;
         while (strOrder != "")
         {
             intCount++;
             int intId = Int32.Parse(strOrder.Substring(0, strOrder.IndexOf("&")));
             strOrder = strOrder.Substring(strOrder.IndexOf("&") + 1);
             oServerName.UpdateComponentOrder(intId, intCount);
         }
     }
     Response.Redirect(Request.Path);
 }