Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Profiles

Reply
Thread Tools

Profiles

 
 
Ron
Guest
Posts: n/a
 
      05-17-2006
Hi,

My question is about the new ProfileProvider class in ASP.NET 2.0
and what its limits are.

Can you have multiple Providers with unique properties to each be defined
in the web config file and also group them as such.

example as follows

<profile defaultProvider="MyProfile_ProfileProvider">
<providers>

<add name="MyProfile_ProfileProvider"
connectionStringName="LocalSqlServer"
applicationName="/"
type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>

<add name="MyProfile1_ProfileProvider"
connectionStringName="LocalSqlServer"
applicationName="/"
type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>

<add name="MyProfile2_ProfileProvider"
connectionStringName="LocalSqlServer"
applicationName="/"
type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>

</providers>
<properties>

<group name="Users">
<add name="FirstName"
provider="MyProfile_ProfileProvider"/>
<add name="LastName"
provider="MyProfile_ProfileProvider"/>
<add name="Accounts"
provider="MyProfile_ProfileProvider"
type="System.Collections.ArrayList"/>
</group>

<group name="Customers">
<add name="CustomerName"
provider="MyProfile1_ProfileProvider"
allowAnonymous="true" />
<add name="AccountNumber"
provider="MyProfile1_ProfileProvider"/>
<add name="Contact"
provider="MyProfile1_ProfileProvider"/>
</group>

<group name="ServiceProviders">
<add name="ServiceProviderName"
provider="MyProfile2_ProfileProvider"/>
<add name="AccountNumber"
provider="MyProfile2_ProfileProvider"/>
<add name="Contact"
provider="MyProfile2_ProfileProvider"/>
</group>

</properties>
</profile>
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wireless and Windows roaming profiles =?Utf-8?B?SXZv?= Wireless Networking 11 04-12-2005 07:32 PM
Moz1.7.5. Multiple profiles, profiles lacking email accts crash. oops Splibbilla Firefox 0 03-21-2005 02:58 AM
setting up profiles? Anonymous Wireless Networking 2 10-29-2004 01:58 PM
Prblm: Radius, WLAN, roaming profiles and software install via group policies Ola Theander Wireless Networking 0 09-08-2004 09:50 PM
Re: Roaming profiles and WPA using PEAP MS-CHAPv2 aLTeReGo Wireless Networking 0 09-02-2004 05:51 AM



Advertisments