Example #1
0
 protected void rptAlias_ItemCommand(object source, RepeaterCommandEventArgs e)
 {
     switch (e.CommandName)
     {
     case "Delete":
         var agentId = Convert.ToInt32(e.CommandArgument);
         monitorDb.DeleteAgent(agentId);
         break;
     }
     LoadValues();
 }