473,569 Members | 2,700 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Unable to retrieve profile info

I'm just starting my first 2.0 site with the new membership features and am
having some trouble with profiles. I have my providers set up and working
fine and profile data is being written to the database. However, I can't
retrieve any of the stored profile values on my site. I set up the provider
and everything just like it is explained in the various MSDN articles, but
still nothing.

Any thoughts?
Apr 6 '06 #1
13 2068
Hi Ashley,

How are you writing profile data to the database, is it through the
Page.Profile object? When you try to retrieve you profile data, do the
profile fields you configured in web.config appear under Intellisense?

Chris

Apr 6 '06 #2
I'm writing the values through a click handler like this:

profile.Display Name = txtDisplayName. Text

The data is making it to the database just fine, but doesn't come back when
I make a call to profile.Display Name

DisplayName does show up under Intellisense when I type in "profile".

"Chris Fulstow" wrote:
Hi Ashley,

How are you writing profile data to the database, is it through the
Page.Profile object? When you try to retrieve you profile data, do the
profile fields you configured in web.config appear under Intellisense?

Chris

Apr 6 '06 #3
In which event handler are you trying to read the profile values?

Apr 6 '06 #4
Isn't it Profile.Display Name (with a capital "P")

If your using VB then I don't think it makes much of a difference; but
this is the only thing I can think of.

Apr 6 '06 #5
I just made a simple form with a textbox and a button. When the button is
clicked it fires the click handler and apparently does the update because the
database is correct.

"Chris Fulstow" wrote:
In which event handler are you trying to read the profile values?

Apr 6 '06 #6
I'm using VB, so it shouldn't matter.

"tdavisjr" wrote:
Isn't it Profile.Display Name (with a capital "P")

If your using VB then I don't think it makes much of a difference; but
this is the only thing I can think of.

Apr 6 '06 #7
Do you get IntelliSense for your profile properties when you set the
value, or do you need to type it manually? Can you see the profile
data in the database, or is it just the profile table structure?

Apr 6 '06 #8
Yes, I get the Intellisense for the profile entry I created. The profile
data does get written to the database. Everything is happening the way it's
supposed to except for when I actually try and display the profile data
somewhere.

So, on the form I created to change the Display name I have this in my
Page_Load:

If Not Page.IsPostBack then
txtDisplayName. Text = profile.Display Name
End If

And the click handler has only this:

profile.Display Name = txtDisplayName. Text

The txtDisplayName textbox never has the existing profile in it on page
load, nor do any of the other pages where I attempt to call
profile.Display Name.

"Chris Fulstow" wrote:
Do you get IntelliSense for your profile properties when you set the
value, or do you need to type it manually? Can you see the profile
data in the database, or is it just the profile table structure?

Apr 6 '06 #9
All looks ok, what have you got in the <profile> section of your
web.config? Are you using some sort of authentication or is it
anonymous users?

Apr 6 '06 #10

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

Similar topics

2
1968
by: | last post by:
Hi all, How can I get a reference to my custom profile provider in my .aspx page? I have looked at httpcontext.current.profile. But from there where do I go? Ideally I would like to be able to get default profile provider without having to know the "name" configured in web.config. TIA!
6
2212
by: Shimon Sim | last post by:
Hi I am working on application that need to hold custom user information - Last and first name, email, some other domain related information. I used to create Base class for all my pages. The base class would have CurrentUser property that would hold customer class in session and that was fine for all my situations. Now ASP.NET 2.0 came...
0
1669
by: george_Martinho | last post by:
It seems that the ASP.NET Microsoft team didn't think about this!! The profilemanager class has the following methods: - DeleteInactiveProfiles. Enables you to delete all profiles older than a specified date. - DeleteProfile. Enables you to delete a profile associated with a specified username. - DeleteProfiles. Enables you to delete a...
1
2307
by: VB Programmer | last post by:
I am using personalization/profile to store info for the user that is not contained in the aspnet_Users or aspnet_Membership tables. This info includes, firstname, lastname, and phonenumber. On my "signup" page I ask for all their info at one time, including username, password, firstname, lastname, etc.... After I do a...
0
1945
by: a | last post by:
Q. Unable to get a Profile custom (object) collection to bind to GridView,etc (IList objects)? This is my first custom object so I may be doing something rather simple, wrong, or it may be something else to do with the Profile object. Either way, I need help Here's a brief description of the...
2
6343
by: Peter Afonin | last post by:
Hello, I'm using CreateUserWizard control in ASP.NET 2.0. I'm storing the data in SQL Server 2005. The first and last steps run smoothly without any problems. But I added one middle step to collect some other information from the user. I've added this to Web.config: <profile>
5
3494
by: Johnny BeGood | last post by:
Hi All, Has anyone got any ideas on how to retrieve mobile phone info from a phone that connects to my web site, I want to use that data as part of logon authentication, for example: <?php $user_agent = $_SERVER; ?> The info from your mobile is <?php echo($user_agent ); ?>
4
7603
by: ian | last post by:
A few weeks ago I was able to run remote debugging from my local machine (VS 2005 XP sp2) but now I get the following message: unable to start debugging on the web server. logon failure: unknown user name or bad password I logged on to a neighbors computer and I can debug from his so the server should be OK right? The web server is...
0
7612
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7924
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8122
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7673
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5513
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5219
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3640
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2113
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 we have to send another system
0
937
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.