protected void btnDeleteObjTypeEventScript_Click(object sender, EventArgs e)
    {
        OSAEScriptManager.ObjectTypeEventScriptDelete(hdnSelectedObjTypeEventScriptID.Text);
        loadObjTypeEventScripts();
        int selectedRow = Int32.Parse(hdnSelectedObjTypeEventScriptRow.Text) - 1;

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