protected void btnEventDelete_Click(object sender, EventArgs e)
    {
        OSAEObjectTypeManager.ObjectTypeEventDelete(txtEventName.Text, hdnSelectedObjectName.Text);
        txtEventName.Text  = "";
        txtEventLabel.Text = "";
        loadEvents();
        int selectedRow = Int32.Parse(hdnSelectedEventRow.Text) - 1;

        if (selectedRow < 0)
        {
            hdnSelectedEventRow.Text = "";
        }
        else
        {
            hdnSelectedEventRow.Text = selectedRow.ToString();
        }
    }