protected void lstPages_SelectedIndexChanged(object sender, EventArgs e) { btnRemove.Enabled = lstPages.SelectedIndex != -1; }