using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace MoonPro.WebUserControls { public partial class mod_mainMap : System.Web.UI.UserControl { protected void Page_Load(object sender, EventArgs e) { // blocco button della pagina corrente... if (Page.Title.Contains("Stato")) { hlStato.Enabled = false; spStato.Attributes.Remove("class"); spStato.Attributes.Add("class", "btn btn-warning"); } else if (Page.Title.Contains("Sequencer")) { hlSequencer.Enabled = false; spSequencer.Attributes.Remove("class"); spSequencer.Attributes.Add("class", "btn btn-warning"); } else if (Page.Title.Contains("Statistiche")) { hlStatistiche.Enabled = false; spStatistiche.Attributes.Remove("class"); spStatistiche.Attributes.Add("class", "btn btn-warning"); } else if (Page.Title.Contains("Produzione")) { hlProduzione.Enabled = false; spProduzione.Attributes.Remove("class"); spProduzione.Attributes.Add("class", "btn btn-warning"); } } } }