473,480 Members | 1,884 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

maintaning extra user-specific data (profiles)

Hello,
I am learning .NET (3.0). I am writing ASP.NET application and I need to
store some extra information (like default settings for each user.
In web.config I added:

<profile enabled="true">
<properties>

<add name="DefaultProject" type="string"/>

</properties>

</profile>
But I don't know how to maintain the data. In Website|ASP.NET Configuration
I don't see my properties.
Could you help me please?
/RAM/
Dec 23 '06 #1
1 1524
I have changed <profilesection definition to:
<profile enabled="true" defaultProvider="AspNetSqlMembershipProvider">

<properties>

<add name="DefaultProject" type="string"/>

</properties>

</profile>

<membership defaultProvider="AspNetSqlMembershipProvider">

<providers>

<add name="AspNetSqlMembershipProvider"

type="System.Web.Security.SqlMembershipProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"

connectionStringName="SqlServices"

minRequiredPasswordLength="4"

minRequiredNonalphanumericCharacters="0" />

</providers>

</membership>

....and I am trying to read extra data (DefaultProject):

UserProfile up = new UserProfile(); // here error

.... up.DefaultProject ...

But I recive error: Default profile provider not found. In line: <profile
enabled="true" defaultProvider="AspNetSqlMembershipProvider">

Could you help me plase?

Użytkownik "R.A.M." <r_********@poczta.onet.plnapisał w wiadomo¶ci
news:em**********@news.onet.pl...
Hello,
I am learning .NET (3.0). I am writing ASP.NET application and I need to
store some extra information (like default settings for each user.
In web.config I added:

<profile enabled="true">
<properties>

<add name="DefaultProject" type="string"/>

</properties>

</profile>
But I don't know how to maintain the data. In Website|ASP.NET
Configuration I don't see my properties.
Could you help me please?
/RAM/


Dec 23 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
1703
by: Tank | last post by:
First off let me say that I am by no means a skilled programmer so i probably have made a dozen mistakes in my attempt at coding my problem. I will tell you the problem so that you have an idea of...
0
1139
by: ethan | last post by:
IIS/ASP appears to be adding extra (unwanted) cache-control headers to all requests handled by ASP and ASP.NET. This does not happen for HTM, JS, GIF, etc requests. How can I prevent the addition...
4
1618
by: Christoph Haas | last post by:
Evening... I'm writing a simple interactive program to maintain a database. The goal was to print "> " at the beginning of the line, wait for user input and then deal with it. Minimal test...
0
1268
by: michael | last post by:
On my ASP.NET pages, it seems that _after_ any web or user control - an extra (small) line break or space is inserted automatically right after the Control. This is unwanted since it messes up...
0
1054
by: michael | last post by:
On my ASP.NET pages, it seems that _after_ any web or user control - an extra (small) line break or space is inserted automatically right after the Control. This is unwanted since it messes up...
2
2914
by: michael | last post by:
On my ASP.NET pages, it seems that _after_ any web or user control - an extra (small) line break or space is inserted automatically right after the Control. This is unwanted since it messes up...
11
3635
by: santosh | last post by:
Hi, A book that I'm currently using notes that the fgets() function does not return until Return is pressed or an EOF or other error is encountered. It then at most (in the absence of...
2
4470
Colloid Snake
by: Colloid Snake | last post by:
Hello, I was attempting to configure log4cpp to monitor some logs on my *nix box, and when I run 'make' I get this error message: # make g++ -DHAVE_CONFIG_H -I. -I. -I../include...
8
1983
by: dancer | last post by:
Using ASP.net 1.1 to create user input form. When I put a RequiredFieldValidator I have extra space at the bottom of the cell, as if I had put a <br>. When I comment out the...
0
1247
by: Steven Cheng [MSFT] | last post by:
Hi Nick, From the description in your first message, I think what you want to do the let the webservice server-side proactively notify the webservice client for some changing, correct? I'm...
0
6915
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7054
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7097
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6750
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5353
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3003
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2993
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1307
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
567
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.