Filter room list

  •  01-29-2008, 5:15 AM

    Filter room list

    I found this code in one of the Cute Chat files and gave it a try. It now lists all 6 rooms I have with the number of chatters in each room. I am ok with that. EX.

    Public Conference Room #1
    ( 1 chatting)
     
    My question is, How would I only display or filter to show either by LobbyID or RoomName. Say if i only want LobbyId -3, -5, and -7 .  Here is the code i have on my home page in CS 2007:

    <table cellspacing="1" border="0" cellpadding="5" width="50%">

    <tr><td><ASP:DataList id="DataList_Lobbies" CellSpacing="3" Width="100%" RepeatColumns="1" runat="server">

    <ItemTemplate>

    <asp:Label ID="lnkLobby" Runat="server">

    <%="<"%><%="script"%><%=" src='"%><%=ResolveUrl("/Chat/IntegrationUtility.js.aspx")%><%="'"%><%=">"%><%="<"%><%="/script"%><%=">"%>

    <nobr>

    <%#DataBinder.Eval(Container.DataItem, "Name")%></nobr>

    <br />

    (

    <asp:Label ID="lblOnlineChater" Runat="server"></asp:Label>

    chatting)

    </asp:Label></ItemTemplate></ASP:DataList> </td></tr></table>

    Thanks for your time, Jay

View Complete Thread