Author: ayaladimese | Posted on: 12/6/2008 11:09:32 PM | Views : 451

 hi
i created a chat application and i have a div that i want to use to display the logged in users. i used the following code to pull the usernames from my database table but whenever i test multiple users it displays one user name only.

 
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Session.Add("UserID", User.Identity.Name)
        Me.LoggedInUsers()
    End Sub

    Private Sub LoggedInUsers()
        Dim str As String
        Dim myConnection As New SqlConnection(ConfigurationManager.ConnectionStrings("ConnectionString").ConnectionString)

        str = "SELECT [username] FROM [Message]"
Go to the complete details ...