Solved

MembershipUser.IsOnline Property

Posted on 2007-03-19
2
727 Views
Last Modified: 2012-08-13
How can MembershipUser.IsOnline Property be updated realtime? I tested it for displaying online users and keep seeing offline ones still listed. Please advise,
0
Comment
Question by:ksfok
2 Comments
 
LVL 22

Accepted Solution

by:
DarkoLord earned 500 total points
Comment Utility
Can you show your code you use to get MembershipUser?
0
 

Author Comment

by:ksfok
Comment Utility
   Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

        Label1.Text = "OnLine Count : " & Membership.GetNumberOfUsersOnline().ToString()
        Dim olUsers As New MembershipUserCollection
        Dim UserOLlist As MembershipUserCollection
        UserOLlist = Membership.GetAllUsers()
        For Each user As MembershipUser In UserOLlist
            If user.IsOnline Then
                olUsers.Add(user)
            End If
        Next
        GridView1.DataSource = olUsers
        GridView1.DataBind()

    End Sub
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now