show the list of usernames inside a div

f1r3d0g

New Member
I am new to jQuery. In my project, I created one Class \[code\]User\[/code\] in which the code is as shown below:\[code\] static ConcurrentDictionary<string, User> _users = new ConcurrentDictionary<string, User>(); // // some function to add values to _users list // public List<User> GetConnectedUsers() { return _users.Values.ToList(); }\[/code\]I want to show this list of values in \[code\]div\[/code\] #showUsernames. How to do this by using jQuery?I tried the below which is not showing anything\[code\] /*display your contacts*/ $('#showUsernames').append(function(){ chat.server.getConnectedUsers(); });\[/code\]where \[code\]chat.server\[/code\](signalr) calls the server-side code(Chat class)..
I think the solution has nothing to do with signalr.If the above description is not enough then you can go through my code here
 
Back
Top