标题:[求助]关于Repeater
只看楼主
ruffianshen
Rank: 1
等 级:新手上路
帖 子:155
专家分:0
注 册:2006-10-31
得分:0 
<!-- Repeater1 Start -->
<asp:Repeater id="rep1" runat="server" EnableViewState="true">
<HeaderTemplate>
<!-- ********* HeaderTemplate.Start ************* //-->
<table width="100%" class="tableBorder" cellpadding="0" cellspacing="0">
<tr height=20>
<TD class=listViewThS1 scope=col noWrap>
<IMG height=1 alt="" src='<%= Globals.ApplicationPath +"/Themes/images/blank.gif"%>' width=1></TD>
<TD class=listViewThS1 scope=col noWrap width="5%" align="center">
<% =ResManager.GetString("Select")%>
</TD>
<TD class=listViewThS1 scope=col noWrap width="45%">
<Control:Anchor class="listViewThLinkS1" StrName="MyMessage_Subject" SortBuy="Subject" nbspacing="1" AnchorType="MyMessageListTitle" runat="server"/>
</TD>
<TD class=listViewThS1 scope=col noWrap width="20%">
<Control:Anchor class="listViewThLinkS1" StrName="MyMessage_SendID" SortBuy="SenderUserID" nbspacing="1" AnchorType="MyMessageListTitle" runat="server"/>
</TD>
<TD class=listViewThS1 scope=col noWrap width="20%">
<Control:Anchor class="listViewThLinkS1" StrName="MyMessage_CreateTime" SortBuy="CreateTime" nbspacing="1" AnchorType="MyMessageListTitle" runat="server" />
</TD>
<TD class=listViewThS1 scope=col noWrap width="10%">
<Control:Anchor class="listViewThLinkS1" StrName="MyMessage_IsRead" SortBuy="IsRead" nbspacing="1" AnchorType="MyMessageListTitle" runat="server"/>
</TD>
</tr>
</table>
<table width="100%" class="tableBorder" cellpadding="4" cellspacing="1">

<!-- ********* HeaderTemplate.End ************* //-->
</HeaderTemplate>
<ItemTemplate>
<TR height=20>
<TD class=oddListRowS1 vAlign=top bgColor=#e4ecf4 width=1><INPUT type="hidden" id="hidMessageID" runat="server" value='<%# DataBinder.Eval(Container, "DataItem.MessageID")%>'><INPUT type="hidden" id="hidRecipientUserID" runat="server" value='<%# DataBinder.Eval(Container, "DataItem.RecipientUserID")%>' NAME="Hidden2"></TD>
<TD class=oddListRowS1 vAlign=top bgColor=#e4ecf4 width="5%"><asp:CheckBox Runat="server" ID="CheckSelect" Checked=False></asp:CheckBox><INPUT type="hidden" id="hidUserid" runat="server" value='<%# DataBinder.Eval(Container, "DataItem.SenderUserID")%>'></TD>
<TD class=oddListRowS1 vAlign=top bgColor=#e4ecf4 width="45%"><%# DataBinder.Eval(Container, "DataItem.Subject")%></TD>
<TD class=oddListRowS1 vAlign=top bgColor=#e4ecf4 width="20%"><%# Users.GetUserByID(Convert.ToInt32(DataBinder.Eval(Container, "DataItem.SenderUserID")),false).Username%></TD>
<TD class=oddListRowS1 vAlign=top bgColor=#e4ecf4 width="20%"><%# DataBinder.Eval(Container, "DataItem.CreateTime")%></TD>
<TD class=oddListRowS1 vAlign=top bgColor=#e4ecf4 width="10%"><%# DataBinder.Eval(Container, "DataItem.IsRead")%></TD>
</TR>
<!-- ********* ItemTemplate.End ************* //-->
</ItemTemplate>
<FooterTemplate>
<!-- ********* FooterTemplate.End ************* //-->
</FooterTemplate>
</asp:Repeater>
<!-- Repeater1 End -->

上面是我的代码,在后台怎么去实现他的隐藏啊?

2007-03-22 10:56



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-125792-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.172423 second(s), 10 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved