Esempio n. 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["usuario"] == null)
     {
         Response.Redirect("../InicioQYMS.aspx");
     }
     usuario = (UsuarioBC)Session["usuario"];
     if (!IsPostBack)
     {
         YMS_ZONA_BC y  = new YMS_ZONA_BC();
         PlayaBC     p  = new PlayaBC();
         Tipo_ZonaBC tz = new Tipo_ZonaBC();
         DataTable   dt = y.ObteneSites(usuario.ID);
         utils.CargaDropNormal(ddl_site, "ID", "NOMBRE", dt);
         utils.CargaDropNormal(ddl_editSite, "ID", "NOMBRE", dt);
         utils.CargaDrop(ddl_editTipo, "PYTI_ID", "TIPO_PLAYA", p.ObtenerTipos());
         utils.CargaDrop(ddl_editTipoZona, "ID", "DESCRIPCION", tz.ObtenerTodos());
         ddl_site_SelectedIndexChanged(null, null);
         ddl_editSite_SelectedIndexChanged(null, null);
         //ltl_contenidoCaract.Text = crearContenido();
     }
 }