protected void repNoticia_ItemDataBound(object sender, RepeaterItemEventArgs e) { Literal litTitular = (Literal)e.Item.FindControl("litTitular"); HyperLink lnkUrlPagina = (HyperLink)e.Item.FindControl("lnkUrlPagina"); if (litTitular != null && lnkUrlPagina != null) { eNoticia oItem = (eNoticia)e.Item.DataItem; int IdMenuWebNoticias = 7; //IdMenuWeb litTitular.Text = oItem.titulo; lnkUrlPagina.NavigateUrl = ClientScriptHelper.getEnlace_MenuWeb(IdMenuWebNoticias) + "&nID=" + oItem.id; } }
protected void repNoticia_ItemDataBound(object sender, RepeaterItemEventArgs e) { Literal litFecha = (Literal)e.Item.FindControl("litFecha"); Literal litTitulo = (Literal)e.Item.FindControl("litTitulo"); Literal litResumen = (Literal)e.Item.FindControl("litResumen"); HyperLink lnkUrlPagina = (HyperLink)e.Item.FindControl("lnkUrlPagina"); if (litTitulo != null && litResumen != null && lnkUrlPagina != null) { eNoticia oItem = (eNoticia)e.Item.DataItem; litFecha.Text = oItem.fecha; litTitulo.Text = oItem.titulo; litResumen.Text = oItem.resumen; lnkUrlPagina.NavigateUrl = ClientScriptHelper.getEnlace_MenuWeb(oSeccionWeb) + "&nID=" + oItem.id; } }
private void FillDetalle(int IdNoticia) { eNoticia oItem = HttpServices.GetItem_Noticia(IdNoticia); if (oItem != null) { litFecha.Text = oItem.fecha; litTitulo.Text = oItem.titulo; litDescripcion.Text = oItem.descripcion; } int IdPlantilla_Contacto = 27; int IdMenuWeb_Contacto = 5; List <eArticulo> list = lCMS.ArticuloPlantilla_listarWeb(IdPlantilla_Contacto, IdMenuWeb_Contacto, oSeccionWeb.IdIdioma); if (list.Count > 0) { lnkContactanos.NavigateUrl = ClientScriptHelper.getEnlace_Articulo(list[0]); } }