C# - Best Pratice: How To Implement A List Similar To Stackoverflow's Users List

Apr 7, 2010

Technologies involved:

ASP.NET Web-forms
Javascript (jQuery for instance)

Case,To make it clearer let's give the Stackoverflow Users list as an example. This list can be manipulated at client-side. I can search, page and so forth. So obviously we would need to call jQuery.ajax to retrieve the HTML of each page given a search. Alright. Now this leaves me with the first question:

What is the best way to render the response for the jQuery.ajax at server-side? I can't use templates I suppose, so the most obvious solution I think is to create the HTML tags as server-controls and render them as the result of an ASHX request? Nice. That solved we have yet another problem:

When the user first enters the Authors List the first list page should already come from the server completely rendered alright? Of course we could render the first page as well as an ajax call but I don't think it's better. This time I CAN use templates to render the list but this template couldn't be reused in case 1. What do I do?

Now the final question: Now we have 2 rendering strategies: 1) Client and 2) Server. How do I reuse code for the 2 renderings?

View 2 Replies


Similar Messages:

Security :: Grab A Users/roles List / How To Implement A User's List Into Website

Sep 16, 2010

Just wondering how to implement a user's list into website ? im using ASP.NET C#. I want to be able to:

add/delete usersadd/remove roles

View 2 Replies

C# - Tags List In Stackoverflow?

May 17, 2010

am working on website in asp.net mvc. There is form where user is asked to put some information along with the Tags similar to stackoverflow. this tags information is saved in the same table in field Tags.Now I want to show them a help to select tags from the list (same as in stackoverflow).how can i extract it from the table. Wont it be too much to run the query again and againfor each letter they type, because I will be extracting unique tags from my table. Or should i have another table tagslookup where i should save unique tags.

View 1 Replies

Stackoverflow Style Data List View?

Jan 17, 2011

I use ASP.Net web form and ADO.Net.I would like to show the data list like stackoverflow because I don't want to use GridView. I've some data fields to show example.

Title
Description
Date
Keyword

what control I should use and that control will attach with Pager for the data list.

View 2 Replies

C# - List Manager Applications For .net Mvc That Are Similar To Sharewpoint?

Mar 24, 2011

Are there any "list" manager applications for asp.net mvc (or vanilla asp.net) that are similar to say:Sharepoint ListsCreate your own list on google sites would prefer open-source!

View 2 Replies

Forms Data Controls :: User Group List Like Graph / Get The List Of Users Under A Group

Oct 26, 2010

I need to develop a page in my applicaiton like the image for the user lists.

I need to get the list of users under a group and need to show likw this.

View 4 Replies

Using The IEnumerable Function Intersect() To Combine A Few List And Get The Similar Integers?

Jun 2, 2010

I would like to use the IEnumerable function Intersect() to combine a few list and get the similar integers from each list. The problem I'm faced with is that I don't know how many list I will need to compare.

Here is an example:

A{1,2,3,4}
B{1,2,3}
C{1,2}

results = A.Intersect(B).Intersect(C)

This works great, but the next time around I may have a D{1,2} next time I come across the function.

I'd like to use the Intersect method, but I'm open to new ideas as well.

View 1 Replies

AJAX :: Async Loading Of List - Similar To Facebook And Twitter?

Mar 2, 2011

I tried to search around, but could not find anything for this question which must be wrong, because I would guess there were a lot of topics about it.

Anyway, I would like to load lists on my site in a similar style to Facebook and Twitter, where initially x records are loaded into the list, and then after the page has loaded the list expands downwards with more rows of content, or add a "more" button in the end. I am using ASP.NET with C#.

View 1 Replies

How To Get The List Of Users And Also To Update/Delete Users

Aug 11, 2010

I have used Login Control + Change Password + Create User Wizard in my project. Everything is working fine. I want to know that how to get the List of Users and also to Update/Delete users.

View 1 Replies

How To Get List Of Active Users In Iis 6

Feb 27, 2010

How do I retrieve list of Active users (with account ids) in IIS 6.

View 2 Replies

Get A List Of Online Users In Mvc?

Jan 23, 2011

I have a page in my application which always shows updated list of online users. Now, to keep the list-which is stored in application object- updated, i do the below steps

add user to list when login remove user on log off Then to handle browser close/navigate away situations, I have a timestamp along with the username in the collectionAn ajax call every 90 seconds updates the timestamp.

The problem:

I need something to clean this list every 120 seconds to remove entries with old timestamps.

How do I do this within my web application? ie Call a function every 2 mins.

PS: I thought of calling a webservice every 2 mins using a scheduler , but the hosting environment do not allow any scheduling.

View 2 Replies

Object Must Implement IConvertible Error With List?

Nov 28, 2010

I posted a question earlier about a using a list to store data then pass it through a session variable I have this code so far:

Default page:
protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
{
var basketItems = new List<int>();
[code]...

View 1 Replies

How To Get Current Online Users List

Jun 22, 2010

I need to know to get current online user list. How can I achieve. I am using membership concepts that is asp login control.

View 1 Replies

How To List Windows Users And Groups

Aug 18, 2010

I have a ASP.NET Website project and I need to list all the users and their groups on my Windows system. I have set the identity impersonation to true and provided the username and password of the admin in the web.config. Where do I start?

Update:

I have the following code at the moment -

var machine = new DirectoryEntry("WinNT://<IP ADDRESS>");
foreach (DirectoryEntry child in machine.Children)
{
// get the child's group(s).
}

When I debug, I can see the list of users in machine.Children. How do I find the group(s) that this user belongs to?

View 2 Replies

C# - How To Get A List Of Users From Active Directory

Mar 2, 2011

How can I get a list of users from active directory? Is there a way to pull username, firstname, lastname? I saw a similar post where this was used:

PrincipalContext ctx = new PrincipalContext(ContextType.Domain, "YOURDOMAIN"); I have never done anything with active directory so I am completely lost.

View 3 Replies

C# - How To Get List Of Users Who Like An Application From Facebook

Oct 15, 2010

I need to scrap the email and phone numbers of all the users who 'like' a facebook application.

for example : http://www.facebook.com/home.php?#!/apps/application.php?id=2438981128

The above application contains over 1000 users who like the application. Is there a Facebook API to accomplish this ?

View 1 Replies

C# - To Get A List Of Users Who Are Not In A Specific Role

Mar 16, 2011

Is there any reasonably efficient way to get a list of users who are not in a specific role?

The only methods I can see are Get all the users from DB and do a check in code

Go directly to the db and sidestep the role provider

View 3 Replies

Security :: Get List Of Users Who Are Online?

Sep 22, 2010

i am using membership classes,,, i want to fetch the list of users who are online based on a condition... the condition is that i want to fetch the users with a specified userids... eg i have 10 user's userids and i want to check which of these users are online..

View 6 Replies

C# - Let Users Edit List <T> Content?

Apr 7, 2010

I'm making an aspx page that can edit books. A book is an complex class with lots of properties.

I've made an edit page for most of them, however I'm having trouble with showing edit options for my Sellers Proprety. It is an list<Seller> object.

Seller is as follows:

public class Seller
{
private string sellerName;
private double price;
}

How can I print a list to the screen, and let the clinet edit it, then load it back to the object?

View 2 Replies

State Management :: How To Implement Caching To A Dropdown List

Dec 3, 2010

How to implement caching to a dropdown list

View 2 Replies

Security :: Getting List Of Users Under A Particular User Group Id?

Oct 23, 2010

Given a particular user group id, how can we most quickly retrieve the list of users under that user group id?

View 2 Replies

C# - Get A List Of Banned Users By Date Descending?

Feb 27, 2011

Im doing something like this to get a list of all users that have been blocked:

public IQueryable<Aspnet_User> GetBannedUsers()
{
return db.Aspnet_Memberships.Where(x => x.IsApproved == false).Select(x => x.Aspnet_User);
}

Im doing this to block users:

MembershipUser user = Membership.GetUser(username);
if (user != null)
{
user.IsApproved = isApproved;
Membership.UpdateUser(user);
}

how can i get the list of banned users ordered by date they were banned.

View 2 Replies

MVC :: List The Current Users Online (like Chat)

Jul 7, 2010

How can I get all the current users online in MVC 2 (like chat)?

Remember that MVC 2 (or v1.0) template was built-up with membership view/controller/model. That is possible using that model, I can get the online users?

View 2 Replies

Security :: Get Current Online Users List?

Jun 22, 2010

I need to know to get current online user list. How can I achieve. I am using membership concepts that is asp login control.

View 1 Replies

Security :: Detect The Country Name Of Users List?

Dec 11, 2010

How can I detect the country name of our users list in asp.net membership provider. In addition, the country name which can be found by IP address.

Is there any built in functionality within ASP.net membership provider? If yes then it is good and if not then how can I implement this?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved