Solved

MembershipUser.IsOnline Property

Posted on 2007-03-19
2
734 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
ID: 18750670
Can you show your code you use to get MembershipUser?
0
 

Author Comment

by:ksfok
ID: 18751070
   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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
convert html to string 6 34
ASP.net show message while code is running 3 17
encoding an href string 2 20
jQuery - following an example but can I save data server side? 20 48
This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

776 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