Ver Mensaje Individual
  #3 (permalink)  
Antiguo 15/10/2004, 05:27
Avatar de avsurdo
avsurdo
 
Fecha de Ingreso: mayo-2004
Ubicación: Sevilla
Mensajes: 84
Antigüedad: 20 años
Puntos: 0
Este es el códgio de algo por el estilo:
-- aspx:
<asp:Repeater id="rptResumenProyecto" runat="server">
<ItemTemplate>
<asp:PlaceHolder Runat="server" ID="phProyecto" Visible=<%# MuestraCabeceraProyecto((int)DataBinder.Eval(Conta iner.DataItem, "proyectoID")) %>>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td height="10"></td></tr>
<tr>
<td align="center" class="titulos"><a href="gestionProyecto.aspx?ProyectoID=<%#(int)Data Binder.Eval(Container.DataItem, "proyectoID")%>" class="titulos"><%# DataBinder.Eval(Container.DataItem, "proyecto")%></a></td>
</tr>
</table>
</asp:PlaceHolder>
<asp:PlaceHolder Runat="server" ID="phEstado" Visible=<%# MuestraCabeceraEstado((int)DataBinder.Eval(Contain er.DataItem, "estadoID")) %>>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; BORDER-BOTTOM: #cccccc 1px solid">
<tr>
<td height="22px" colspan="5" width="100%" class="datagrid"><%# DataBinder.Eval(Container.DataItem, "estado")%></td>
</tr>
<tr class="texto">
<td height="18px" width="5%" align="center" style="BORDER-RIGHT: #cccccc 1px solid">Ref.</td>
<td height="18px" width="63%" align="center" style="BORDER-RIGHT: #cccccc 1px solid">Título</td>
<td height="18px" width="14%" align="center" style="BORDER-RIGHT: #cccccc 1px solid">F.Creación</td>
<td height="18px" width="14%" align="center" style="BORDER-RIGHT: #cccccc 1px solid">F.Comprom.</td>
<td height="18px" width="4%" align="center"></td>
</tr>
</table>
</asp:PlaceHolder>
<asp:PlaceHolder Runat="server" ID="phResultadosIncidencias">
<table class="datagrid_general" border="0" cellpadding="0" cellspacing="0" style="BORDER-RIGHT: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; BORDER-BOTTOM: #cccccc 1px solid">
<tr>
<td width="29px" style="BORDER-RIGHT: #cccccc 1px solid"><%# DataBinder.Eval(Container.DataItem, "referencia")%></td>
<td width="385px" align="left" style="BORDER-RIGHT: #cccccc 1px solid"><%# DataBinder.Eval(Container.DataItem, "descripcion")%></td>
<td width="85px" style="BORDER-RIGHT: #cccccc 1px solid"><%# string.Format("{0:d}",DataBinder.Eval(Container.Da taItem, "fechaCreacion"))%></td>
<td width="85px"><%# string.Format("{0:d}",DataBinder.Eval(Container.Da taItem, "fechaCompromiso"))%></td>
<td width="" style="BORDER-LEFT: #cccccc 1px solid"><a href="gestionIncidencia.aspx?IncidenciaID=<%#(int) DataBinder.Eval(Container.DataItem, "incidenciaID")%>" title="Ver"><img src="graficos/lupa.gif"></a></td>
</tr>
</table>
</asp:PlaceHolder>
</ItemTemplate>
</asp:Repeater>

-- aspx.cs:
public bool MuestraCabeceraProyecto(int intContent)
{
bool res = false;
if(intContent != this.proyectoID)
{
res = true;
proyectoID = intContent;
}
if(res)
{
this.estadoID = -1;
this.incidenciaID = -1;
}
return res;
}

public bool MuestraCabeceraEstado(int intContent)
{
bool res = false;
if(intContent != this.estadoID)
{
res = true;
estadoID = intContent;
}
return res;
}

public bool MuestraCabeceraIncidencia(int intContent)
{
bool res = false;
if(intContent != this.incidenciaID)
{
res = true;
incidenciaID = intContent;
}
return res;
}


Espero que te sirva de algo.
__________________
:stress: De verdad de la buena