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: 3/12/2008 3:41:31 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 8 Views: 42 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
9 Items, 1 Pages 1 |< << Go >> >|
mj_developer
Asp.Net User
Definition of GetPropertyValue method in Profile class3/12/2008 3:41:31 PM

0/0

I want to see definition of GetPropertyValue method in Profile class,please help me.

Thanks. 


MJ_Developer
vinz
Asp.Net User
Re: Definition of GetPropertyValue method in Profile class3/12/2008 6:37:24 PM

0/0

see link below

http://msdn2.microsoft.com/en-us/library/system.web.profile.profilebase.getpropertyvalue(VS.80).aspx 

http://msdn2.microsoft.com/en-us/library/system.web.profile.profilebase.getpropertyvalue.aspx 


Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post fixed your problem.


mj_developer
Asp.Net User
Re: Definition of GetPropertyValue method in Profile class3/13/2008 8:29:48 AM

0/0

Thanks for your reply,

VINZ ! , All profile classes return data for current user but i want return data for multiple users  from ' PropertyValues field ' in ' aspnet_profile table ' ???


MJ_Developer
hveseli
Asp.Net User
Re: Definition of GetPropertyValue method in Profile class3/13/2008 10:59:19 AM

0/0

mj_developer:
All profile classes return data for current user but i want return data for multiple users  from ' PropertyValues field ' in ' aspnet_profile table ' ???

 
 I do it this way and it works:

  

1    	public object[] GetPropertyValues(string propertyName)
2    	{
3    		int totRec;
4    		List<object> values = new List<object>();
5    		ProfileInfoCollection pic = ProfileManager.GetAllProfiles(ProfileAuthenticationOption.Authenticated, 0, 1000, out totRec);
6    
7    		foreach (ProfileInfo pi2 in pic)
8    			values.Add(ProfileBase.Create(pi2.UserName).GetPropertyValue(propertyName));
9    
10   		return values.ToArray();
11   	}
12   
 
 

 

 

 

 

mj_developer
Asp.Net User
Re: Definition of GetPropertyValue method in Profile class3/13/2008 11:21:46 AM

0/0

Thanks for your reply

But,Please send for me VB.NET code.

Thanks again.


MJ_Developer
hveseli
Asp.Net User
Re: Definition of GetPropertyValue method in Profile class3/13/2008 11:27:33 AM

0/0

There are converters that for c# to vb.net like this: http://labs.developerfusion.co.uk/convert/csharp-to-vb.aspx

 

 

 Public Function GetPropertyValues(ByVal propertyName As String) As Object()
     Dim totRec As Integer
     Dim values As New List(Of Object)()
     Dim pic As ProfileInfoCollection = ProfileManager.GetAllProfiles(ProfileAuthenticationOption.Authenticated, 0, 1000, totRec)
    
     For Each pi2 As ProfileInfo In pic
         values.Add(ProfileBase.Create(pi2.UserName).GetPropertyValue(propertyName))
     Next
    
     Return values.ToArray()
 End Function
  

 Hope it helps,

hv 

mj_developer
Asp.Net User
Re: Definition of GetPropertyValue method in Profile class3/13/2008 11:47:27 AM

0/0

Dim values As New List(Of Object)()  >>> Error occured : Type List Not Defined !


MJ_Developer
hveseli
Asp.Net User
Re: Definition of GetPropertyValue method in Profile class3/13/2008 5:23:02 PM

0/0

Try this:

 

Public Function GetPropertyValues(ByVal propertyName As String) As Object()
    Dim num As Integer
    Dim list As New List(Of Object)
    Dim info As ProfileInfo
    For Each info In ProfileManager.GetAllProfiles(ProfileAuthenticationOption.Authenticated, 0, 1000, num)
        list.Add(ProfileBase.Create(info.UserName).GetPropertyValue(propertyName))
    Next
    Return list.ToArray
End Function

 
  
mj_developer
Asp.Net User
Re: Definition of GetPropertyValue method in Profile class3/13/2008 8:46:03 PM

0/0

Thank you very much,My problem was solved.Yes


MJ_Developer
9 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Professional ASP.NET 2.0 Authors: Bill Evjen, Scott Hanselman, Farhan Muhammad, Srinivasa Sivakumar, Devin Rader, Pages: 1253, Published: 2005
Professional ASP.NET 3.5: In C# and VB Authors: Bill Evjen, Scott Hanselman, Devin Rader, Pages: 1673, Published: 2008

Web:
Definition of GetPropertyValue method in Profile class - ASP.NET ... Definition of GetPropertyValue method in Profile class. Last post 03-13-2008 4: 46 PM by mj_developer. 8 replies. Sort Posts: ...
ProfileBase.GetPropertyValue Method (System.Web.Profile) .NET Framework Class Library. ProfileBase.GetPropertyValue Method. Updated: November 2007. Gets the value of a profile property. Namespace: System.Web. ...
ProfileBase.GetPropertyValue Method (System.Web.Profile) .NET Framework Class Library. ProfileBase.GetPropertyValue Method. Note: This method is new in the .NET Framework version 2.0. Gets the value of a profile ...
CodeProject: Web Profile Class Generator. Free source code and ... Jul 30, 2008 ... Profile. GetPropertyValue("BirthDate"); } set { HttpContext.Current.Profile. SetPropertyValue("BirthDate", value); } } } public class Address ...
How to use ASP.NET 2.0 Profile object from web service code - Omar ... Now that you have your own Profile class, inside web service, .... reference to a user and profile (and use these methods as a foundation) BUT I am actually ...
UserInfo.Profile.GetPropertyValue returning null values - Install ... UserInfo.Profile.GetPropertyValue returning null values ... Profile. GetPropertyValue("Address"). However when I login as an admin or any other user to ...
Profiles In ASP.NET 2.0 Dec 27, 2005 ... The profile definition lives in the application’s web.config file. .... the GetPropertyValue and SetPropertyValue methods of ProfileBase. ...
DotNetBips.com :: Blossom your .NET skills Dec 25, 2007 ... The code retrieves profile of the user. The value of selected profile property is retrieved using GetPropertyValue() method of the ...
Fredrik Normén's Blog - NSQUARED2 To make sure the property added to your custom Profile class will be saved and retrieved, you can to use the SetPropertyValue and GetPropertyValue method of ...
ProfileBase -vs- ProfileCommon - ASP.NET Forums There is no GetProfile method to override on the ProfileBase class (http://msdn2 .microsoft.com/en-us/library/system.web.profile.profilebase_methods.aspx). ...




Search This Site:










php to asp

dnn 3.1 runs well until opened in visual studio.net

is there anyway for a treeview control to call a javascript function?

get mail adress and password from currently logged in user

membership services

when is the store module coming out?

ugh. could someone knowledgable explain what i'm doing wrong w/my container conversion from 2.1.2 to 3.0.13?

adding tabs to admin or host?

add reference to com object within web service

some free stuff

who know what process image online?

menu control's dynamic menus not showing - problem with webresource.axd

connexion lost?

any idea?

web.config access denied under windows 2003 server and iis - urgent - please help

output to window in visual studio

asp.net 1.1 to asp.net 2.0 with vs.net 2003

visual web developer 2008 is not a valid win32 application

error when clickinh to tab on menu bar

login programmatically

datatable getchanges always return total number of rows

memberrole.dll

don't waste your time: ie web controls doesn't work for 1.1

error message doesn't appear

can not log into sit from remote

asp.net worker process under windows server 2003 / iis 6.0 in iis 5.0 isolation mode

does anyone have a tree view pa

differences?

exclude files from project

security roles

 
All Times Are GMT