PC Review


Reply
Thread Tools Rate Thread

2.0: using System.Web.Profile (newbie)

 
 
R.A.M.
Guest
Posts: n/a
 
      24th May 2007
Hello,
I want to use user profiles in my Web application. In Web.config I have
added:
<profile defaultProvider="SqlProfileProvider">

<providers>

<clear />

<add name="SqlProfileProvider"

type="System.Web.Profile.SqlProfileProvider"

connectionStringName="SqlServices"

applicationName="MIMStock" />

</providers>

<properties>

<add name="Name" type="String" />

<add name="Database" type="String" />

<add name="DefaultStockName" type="String" />

<add name="DefaultGroupName" type="String" />

<add name="UsersAdministration" type="Boolean" defaultValue="False" />

<add name="Configuration" type="Boolean" defaultValue="False" />

<add name="Remarks" type="String" />

</properties>

</profile>

The problem is that although I added to my code-behind "using
System.Web.Profile;" I cannot use Profile (it is not displayed by
IntelliSense dropdownlist).
Please help.
Thank you!
/RAM/


 
Reply With Quote
 
 
 
 
sloan
Guest
Posts: n/a
 
      24th May 2007

check this article:
Appendix 2: Migrating Code that works with the ASP.NET 2.0 Profile Object
http://webproject.scottgu.com/CSharp...igration2.aspx





"R.A.M." <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
> I want to use user profiles in my Web application. In Web.config I have
> added:
> <profile defaultProvider="SqlProfileProvider">
>
> <providers>
>
> <clear />
>
> <add name="SqlProfileProvider"
>
> type="System.Web.Profile.SqlProfileProvider"
>
> connectionStringName="SqlServices"
>
> applicationName="MIMStock" />
>
> </providers>
>
> <properties>
>
> <add name="Name" type="String" />
>
> <add name="Database" type="String" />
>
> <add name="DefaultStockName" type="String" />
>
> <add name="DefaultGroupName" type="String" />
>
> <add name="UsersAdministration" type="Boolean" defaultValue="False" />
>
> <add name="Configuration" type="Boolean" defaultValue="False" />
>
> <add name="Remarks" type="String" />
>
> </properties>
>
> </profile>
>
> The problem is that although I added to my code-behind "using
> System.Web.Profile;" I cannot use Profile (it is not displayed by
> IntelliSense dropdownlist).
> Please help.
> Thank you!
> /RAM/
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
User Profile Folder Found but Profile Not shown in System Properti FMFF Windows XP Performance 1 26th May 2008 11:46 PM
Newbie: using asp.net 2.0 profile in an ASP.NET web service Navin Mishra Microsoft ASP .NET 4 20th Oct 2006 04:22 PM
Newbie: using asp.net 2.0 profile in an ASP.NET web service Navin Mishra Microsoft Dot NET 4 20th Oct 2006 04:22 PM
NEWBIE!!: ASP.Net 2.0 b2 Profile General Questions Johnny Meredith Microsoft ASP .NET 1 12th Jun 2005 04:37 PM
move profile to d:\profile, but system still using profile on c: Greg Chu Microsoft Windows 2000 Setup 3 2nd Apr 2005 05:45 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:51 PM.