0
Answer

Visible Linkbutton in repeater of C# 2005

Ask a question
Hoang Duy

Hoang Duy

17y
2.3k
1

 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!


Next Recommended Forum