locked
Who is Online module RRS feed

  • Question

  • User-2138102261 posted

    Can someone point me in the right direction for a VB solution to displaying who is currently on line, the number of users etc.
    Not looking for a complete tracking solution, just a basic one.
    While searching, I see lots of "Who is Online threads", but no "find the code here...".

     

    Wednesday, October 18, 2006 11:12 PM

All replies

  • User-1709573494 posted

    If someone can reply to this question please....

    Sunday, October 22, 2006 3:54 PM
  • User2069888697 posted

    This will show number of members and how many are on line but not who. Basic but a start.

     

    Add this to the script: 

     Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
            Dim MemberCount As String
            Dim MembersOnline As String
            MemberCount = Membership.GetAllUsers.Count.ToString
            MembersOnline = Membership.GetNumberOfUsersOnline.ToString
            Label3.Text = MembersOnline
            Label4.Text = MemberCount
     End Sub

    Add this to your content:

                    <asp:Label ID="Label1" runat="server" Text="Members:" Font-Bold="True"></asp:Label>
                    <asp:Label ID="Label4" runat="server" Text="Label"></asp:Label>
                    <br />
                    <br />
                    <asp:Label ID="Label2" runat="server" Text="Online:" Width="45px" Font-Bold="True"></asp:Label>
                    <asp:Label ID="Label3" runat="server" Text="Label"></asp:Label><br />

    Sunday, October 22, 2006 7:28 PM