Esempio n. 1
0
    protected void ImageButton8_Click(object sender, ImageClickEventArgs e)
    {
        ((MultiView)WebUserControl_ServicioPago1.FindControl("MVWPago")).ActiveViewIndex = 41;
        MultiView1.ActiveViewIndex = 2;
        ImageButton7.Visible       = true;
        ImageButton8.Visible       = false;
        int CountMenu = ((Menu)WebUserControl_ServicioInformacion1.FindControl("Menu1")).Items.Count;

        for (int i = 0; i < CountMenu; i++)
        {
            if (((Menu)WebUserControl_ServicioInformacion1.FindControl("Menu1")).Items[i].Value == "38" || ((Menu)WebUserControl_ServicioInformacion1.FindControl("Menu1")).Items[i].Value == "8" ||
                ((Menu)WebUserControl_ServicioInformacion1.FindControl("Menu1")).Items[i].Value == "50" || ((Menu)WebUserControl_ServicioInformacion1.FindControl("Menu1")).Items[i].Value == "25")
            {
                ((Menu)WebUserControl_ServicioInformacion1.FindControl("Menu1")).Items[i].Enabled = false;
            }
        }
    }
Esempio n. 2
0
 protected void View4_Activate(object sender, EventArgs e)
 {
     ((MultiView)WebUserControl_ServicioInformacion1.FindControl("MVwInformacion")).ActiveViewIndex = 0;
     ((Menu)WebUserControl_ServicioInformacion1.FindControl("Menu1")).Items[1].Selected             = true;
 }