About custom MembershipProvider

G

Guest

I am studing VS 2005 Feb CTP, and thinking how to use those new features to
my new web project. I think the currently implemented MembershipProviders is
useless, because if I want to add a new field like phone/address, I must
write my MembershipProvider, and all related MembershipUser,
MembershipUserCollection... right? The real web sites always has more user
fields important.
 
P

Paul Glavich [MVP ASP.NET]

This question is really more suited to a Whidbey/V2 related list, however
you can use the Profile features to define custom profile properties in the
web.config. You can define them with (going from memory here so syntax may
be a little wrong or outdated)

<profile>
<properties>
<add name="Address1" type="System.String" />
<add name="Phone" type="System.String" />
</properties>
</profile>

These properties then become strongly typed properties that can be accessed
via intellisense through the 'Profile' property from your web page.

Also, here is a link to personalisation in 2.0
http://msdn.microsoft.com/asp.net/w...en-us/dnvs05/html/vwd_sse_personalization.asp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top