Hoang Duy

Hoang Duy

  • NA
  • 7
  • 0

Visible Linkbutton in repeater of C# 2005

Aug 29 2007 3:38 AM

 Hi Friend! I have repeater in Index_Admin.aspx page as follows: 

<asp:Repeater id=ForumList OnItemCommand="ForumList_ItemCommand" runat="server" datasource='<%# ((System.Data.DataRowView)Container.DataItem).Row.GetChildRows("FK_Forum_Category") %>'>

<ItemTemplate>

<tr class=post>

<td class="alt2" align="left"><font class="Forum_Admin_Grid"><b><%# DataBinder.Eval(Container.DataItem, "[\"ForumName\"]") %></b></font></td>

<td class="alt2" nowrap="nowrap" width="100" align=center><font class="Forum_Admin_Grid"><%# DataBinder.Eval(Container.DataItem, "[\"NumTopics\"]")%></font></td>

<td class="alt2" nowrap="nowrap" width="100" align=center><font class="Forum_Admin_Grid"><%# DataBinder.Eval(Container.DataItem, "[\"NumPosts\"]")%></font></td>

<td class=alt2>

<asp:linkbutton ID="LBtn3" CssClass="Forum_menu_F" runat='server' commandname='edit' commandargument='<%# DataBinder.Eval(Container.DataItem, "[\"ForumID\"]") %>'>EDIT | </asp:linkbutton>

<asp:linkbutton ID="LBtn4" CssClass="Forum_menu_F" runat='server' onload="DeleteForum_Load" commandname='delete' commandargument='<%# DataBinder.Eval(Container.DataItem, "[\"ForumID\"]") %>'>DELTE</asp:linkbutton>

</td>

</tr>

</ItemTemplate>

</asp:Repeater>

Now I want to set Control "LBtn4" is visible=false and "LBtn3" is visible=true

How to do? Help me!! Thanks & Regards!