⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 whoisonline.aspx.vb

📁 this is the code for user manager
💻 VB
字号:

Partial Class WhoIsOnline
    Inherits BasePage

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        MyBase.LogActivity("Viewing Who Is Online")

        If Not Page.IsPostBack Then
            'Display the number of users currently online
            NumOnline.Text = Membership.GetNumberOfUsersOnline()
        End If
    End Sub

    Protected Sub CurrentActivityDataSource_Selecting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceSelectingEventArgs) Handles CurrentActivityDataSource.Selecting
        e.Command.Parameters("@ApplicationName").Value = Membership.ApplicationName
        e.Command.Parameters("@MinutesSinceLastInActive").Value = Membership.UserIsOnlineTimeWindow
        e.Command.Parameters("@CurrentTimeUtc").Value = DateTime.UtcNow
    End Sub
End Class

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -