473,498 Members | 1,633 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Beta 2 Profile Question

How can I access Profile information for a non-logged-in user from an
app_code business object?

I can get Profile info for the logged -in user via
HttpContext.Current.Profile.

I can get Membership info for any user via
System.Web.Security.Membership.GetUser("Username")

Older docs reference Profile.GetProfile('username"), but I can't find such a
function in the object browser.

I've tried ProfileManager.FindProfilesByUserName(...,"usernam e") but the
ProfileInfo Classes that are returned don't allow access to the Profile
properties I need.

I'm stumped, and on deadline.

-Arnie
Nov 19 '05 #1
1 1088
Nice how pressure works.... :)

Dim PB As ProfileBase = ProfileBase.Create(Username)
Dim FN As String = CStr(PB.GetPropertyValue("FirstName"))
"Arnie" wrote:
How can I access Profile information for a non-logged-in user from an
app_code business object?

I can get Profile info for the logged -in user via
HttpContext.Current.Profile.

I can get Membership info for any user via
System.Web.Security.Membership.GetUser("Username")

Older docs reference Profile.GetProfile('username"), but I can't find such a
function in the object browser.

I've tried ProfileManager.FindProfilesByUserName(...,"usernam e") but the
ProfileInfo Classes that are returned don't allow access to the Profile
properties I need.

I'm stumped, and on deadline.

-Arnie

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1249
by: slchen | last post by:
Now, I have a question about profile. I write a program as below: file name: pro.py ------------------------------- import profile import string,re,sys,random,time import main,read_dont ...
0
976
by: AT | last post by:
Thanks in advance if you respond I have very bad problem with profiles. I know they changed a lot but .... It all worked in configuration file fine in beta 1 Since I changed to beta 2...
5
1308
by: Andre Lorbach | last post by:
Hi all, I hope I picked up the right group ;) A few days ago I installed the VS2005 Beta and started playing with it. First of all the (Profile Guided Optimizations) PGO Feature looks very...
3
1298
by: Benjamin Fallar III | last post by:
hi, i noticed that the PROFILE tab is missing in my Web Site Administration Tool on my ASP.NET 2.0 Beta 2 web project. please advise asap.
13
1588
by: Marcos B | last post by:
1) There was announced that the default providers for membership, profile, etc in beta 2 would be SQLExpress instead of the Beta 1 AccessProvider, and that AccessProvider will be discontinued. ...
5
1265
by: cipcip | last post by:
By default profile use sql server xpress provider and probabily, caches stored data when they are requested for the first time, So the question is: why we should use profile instead of storyng,...
1
1590
by: Max2006 | last post by:
Hi, Do I need to be worry about WS-Profiling or it already had been taken care in ASP.NET asmx web services platform? Thank you, Max
0
1126
by: ashish | last post by:
hi all, I am working with a custom profile provider that stores my business object as profile with anonymous identification turned on. I have a question regarding how it is supposed to work...
1
1339
by: shapper | last post by:
Hello, I have a profile with multiple profile properties in my Web.Config: <add allowAnonymous="false" name="Contact" type="Contact" serializeAs="Binary"/> <add allowAnonymous="false"...
0
7125
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7002
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7205
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6887
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7379
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4590
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3085
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1419
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
291
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.