469,591 Members | 2,075 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,591 developers. It's quick & easy.

Current user profile

Hi,

I want to access the profile from the current user. Shouldn't it be as
simple as:

Profile.PostalCode = "1000";

However, when I write Profile on my C# code it is not recognized. Do I
need to import any namespace?

In my Web.Config I have:

<profile defaultProvider="ProfileProvider" enabled="true">

<providers>
<clear/>
<add
applicationName="MyApp"
connectionStringName="ApplicationServices"
name="ProfileProvider"
type="System.Web.Profile.SqlProfileProvider, System.Web,
Version = 2.0.0.0, Culture = neutral, PublicKeyToken =
b03f5f7f11d50a3a"/>
</providers>

<properties>
<add name="Bio" type="MyApp.Security.Bio" serializeAs="Binary"
allowAnonymous="false" />
<add name="Visitor" type="MyApp.Security.Visitor"
serializeAs="Binary" allowAnonymous="true" />
<add name="PostalCode" />
</properties>

</profile>

Am I doing something wrong?

Thanks,
Miguel
Oct 11 '08 #1
0 815

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Pavils Jurjans | last post: by
6 posts views Thread by Jeff | last post: by
3 posts views Thread by JJ | last post: by
4 posts views Thread by Scott M. | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.