471,897 Members | 1,390 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,897 software developers and data experts.

Current user profile


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">

type="System.Web.Profile.SqlProfileProvider, System.Web,
Version =, Culture = neutral, PublicKeyToken =

<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" />


Am I doing something wrong?

Oct 11 '08 #1
0 861

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 YellowAndGreen | last post: by

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.