CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.web_parts_and_personalization Tags:
Item Type: NewsGroup Date Entered: 8/10/2007 6:07:20 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 12 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
Zemareous
Asp.Net User
Retrieving list of users with a particular property.8/10/2007 6:07:20 PM

0/0

So I have a property named "LanguagePref" with only two possible values "English" and "French".

 I simply want to return a list of users who have the preference set to English and a list of those set to French.

Do I start with a loop through the users, grab their preference object and check on that property, or can a select a property and get a list of users directly?

 I'm actually only interested in a count at this point.

  

triggered
Asp.Net User
Re: Retrieving list of users with a particular property.8/10/2007 6:30:55 PM

0/0

You need to specify your datasource.

 
On a side note, if you are caching your resultant set, than it doesnt matter what your datasource is, cause I would recommend, pulling in the whole set from cache and then doing a foreach statement and adding the users to a list based on

your condition.
 


______________________________________________

Best Regards,

Ryan
Zemareous
Asp.Net User
Re: Retrieving list of users with a particular property.8/10/2007 8:01:12 PM

0/0

Yah, perhaps I was not specific. I'm using the profiles in the .NET membership tables. The users are forms authenticated users that have a profile associated to them. I found a solution in another posting, not sure if it's the best implementation but it works fine.

Dim myUsers As New MembershipUserCollection

Dim users As MembershipUserCollection

Dim user As MembershipUser

Dim profile As ProfileCommon

Dim englishCount as Integer
Dim frenchCount as Integer

For Each user In users

profile = ProfileBase.Create(user.UserName)

If profile.langPref.Equals("English") Then

  EnglishCount = EnglishCount + 1

Else

  FrenchCount = FrenchCount + 1

End If

Next

 

3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Mastering VBA for Microsoft Office 2007 Authors: Richard Mansfield, Pages: 888, Published: 2008
Mastering Microsoft VBA Authors: Guy Hart-Davis, Pages: 707, Published: 2005
IJCAI-75: Advance Papers of the Fourth International Joint Conference on Artificial Intelligence. Authors: unknown, Pages: 0, Published: 1975
Access Cookbook: Solutions to Common User Interface & Programming Problems Authors: Ken Getz, Paul Litwin, Andy Baron, Microsoft Corporation, Pages: 810, Published: 2004
Proceedings of the 1994 Second CAD-Based Vision Workshop: Proceedings Authors: Avinash C. Kak, Katsushi Ikeuchi, IEEE Computer Society Technical Committee on Pattern Analysis and Machine Intelligence, Pages: 307, Published: 1994
Proceedings of the Twenty-second Annual Hawaii International Conference on System Sciences: Emerging Technologies and Applications Track Authors: Hawaii International Conference on System Sciences, Ralph H. Sprague, IEEE Computer Society, IEEE computer society, University of Hawaii, Pages: 391, Published: 1989
Professional Web Parts and Custom Controls with ASP.NET 2.0 Authors: Peter Vogel, Pages: 449, Published: 2005
Intellectual Property Law in Cyberspace Authors: G. Peter Albert, Whitesel Laff, Laff, Whitesel & Saret, Saret Laff, Pages: 914, Published: 1999
WebLogic: The Definitive Guide Authors: Jon Mountjoy, Avinash Chugh, Pages: 828, Published: 2004

Web:
Nabble - JIRA - User - Programmatically setting or retrieving user ... Does anyone know which Java API can be used to retrieve a particular user property? Also, is the creation of a customfield type the best option to implement ...
Hey, Scripting Guy! How Can I Retrieve a List of Unique Users from ... Instead, it’s all about retrieving a list of unique users from the ... this line of code to add that user, specifying the value of the User property as both ...
Page 3 - Retrieving SQL Server 2005 database information using SMO ... Feb 21, 2006 ... Populating the database names into a dropdown list is explained in the ... How to retrieve all properties of a particular SQL Server Stored ...
Guide: Retrieving User Information To retrieve the data for a particular eBay user, use GetUser. ... See the documentation for UserType for a complete list of its properties. ...
Method of storing, retrieving and viewing data - Patent 7209914 The user of the database will now take each object, and attribute a value to each cognitive property in the list, the value being particular to that object. ...
Catalina Functional Specifications - JNDIRealm [Requested]; Configuration properties defining how a particular user is authenticated ... Authenticate the user by retrieving the user's Distinguished Name, ...
List and Retrieve Groups in an OU List and Retrieve Groups in an OU. Keywords: list retrieve groups OU ... When doing a search for users/groups in AD, does the adsi commands search the ...
EP883068 Home european software patent - Entity retrieving system ... As the user accesses restricted subsets of the original list, ... ii) for retrieving property values pertaining to at least one particular entity that ...
Page 4 - Retrieving SQL Server 2005 database information using SMO ... Feb 21, 2006 ... How to retrieve all properties of a particular SQL Server ... a list of table names (when a particular database is selected) and also a ...
CodeProject: Property Grid - Dynamic List ComboBox, Validation ... Having these properties in any other order would provide a poor user experience. ..... These methods define how to retrieve the list of data and what to do ...

Videos:
Lawrence Liang - Piracy and Production Berlin, June 2007 // Categories: Piracy, History, Cultural Production, Property Piracy is a term used to stigmatize but Liang contextualizes the te...
Developing and deploying an application on Google App Engine This video introduces developers to building apps on Google App Engine. For more in-depth information and deep-dive technical sessions, come to Googl...
Lawrence Liang - Piracy and Production Berlin, June 2007 // Categories: Piracy, History, Cultural Production, Property Piracy is a term used to stigmatize but Liang contextualizes the te...
Mac OS Automator: Doing things over and over is over. Google TechTalks June 27, 2006 Sal Soghoian ABSTRACT Mac OS X "Tiger" introduces Automator, a new application that automates anything on your compu...
Literate functional testing Google London Test Automation Conference (LTAC) Google Tech Talks September 7th, 2006 Presenters: Robert Chatley and Tom White




Search This Site:










parser error message: the directive 'page' is unknown.

popup widnow/control

sybase databse connection is opening properly and not closing.

dynamically selected drop down box

bad word filter - case sensitivity

problems w/ datarow/datatable

how to programatically check if ssl is enabled

html newsletter from www.dnn.com.au

barcode in a .pdf file

different skins/containers for different locales?

dnn - ftp - dfs? - ad?

table cell widths

crystal report not showing data.

hello i'm the right beginner!

navigate url

methods to update databases

dialogbox just wont close!!!!

updating the date

extremely minor cosmetic issue with visual studio 2005 update to support wap

confirm message before post back

using authorization manager api declaratively

refresh button resends information

delete module cleanup

dynamic skin

ip address

vacation property for rent by owner

is there a shortcut key for auto event complete?

dnn 3.0.12 no module icons on xp

trouble viewing website

how to get kit to work with hosting company 1and1.com

 
All Times Are GMT