can any one please guide me that i want to count totall number of users online i have written this code in global.asa in case of user increament it works fine but when user clicks signout or close the browser it does nothing ...
Fact is, if the user closes the browser, it will always do nothing. So, you need to implement some sort of timeout that checks if a session has been active without any page refreshers for a period of time, then remove them from your active users.
Private Function GetGroups(ByVal _path As String, ByVal _
username As String, ByVal password As String) As String
Dim GroupString As String
Dim myDE As New System.DirectoryServices.DirectoryEntry(_path, _
Dim mySearcher As New DirectorySearcher(myDE)
mySearcher.Filter = "sAMAccountName=" & username
Dim propertyCount As Integer
Dim myresult As SearchResult = mySearcher.FindOne()
propertyCount = myresult.Properties("memberOf").Count
Dim dn As String
Dim equalsIndex, commaIndex As String
For i As Integer = 0 To propertyCount - 1
dn = myresult.Properties("memberOf")(i)
equalsIndex = dn.IndexOf("=", 1)
commaIndex = dn.IndexOf(",", 1)
If equalsIndex = -1 Then
If you've had to pivot your table to show data in a column instead of a row, there's no way the control will let you update a column instead of a row. Your best bet is to use a repeater, start with your normalized data, and write the edit/update functionality yourself.
AFIK, It will try to connect with your server port not local system.
you can build a windows components and install it in client then try to retreive information for that client. Just an idea. you can try it.