473,554 Members | 3,281 Online
Bytes | Software Development & Data Engineering Community
+ 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="DefaultPr oject" 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 1527
I have changed <profilesecti on definition to:
<profile enabled="true" defaultProvider ="AspNetSqlMemb ershipProvider" >

<properties>

<add name="DefaultPr oject" type="string"/>

</properties>

</profile>

<membership defaultProvider ="AspNetSqlMemb ershipProvider" >

<providers>

<add name="AspNetSql MembershipProvi der"

type="System.We b.Security.SqlM embershipProvid er, System.Web,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a"

connectionStrin gName="SqlServi ces"

minRequiredPass wordLength="4"

minRequiredNona lphanumericChar acters="0" />

</providers>

</membership>

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

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

.... up.DefaultProje ct ...

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

Could you help me plase?

Użytkownik "R.A.M." <r_********@poc zta.onet.plnapi sał 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="DefaultPr oject" 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
1711
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 what i am trying to do and I will give you my code so you can see my clusterf*ck. Here is the problem: At work I have about 20 photographers...
0
1144
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 of this extra header? I've set the following HTTP Headers for the entire "Default Web Site" under IIS (ver 5): Cache-Control: no-cache Pragma:...
4
1623
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 program: import sys; print ">", ; print sys.stdin.readline() However when I run the program and enter "foobar" it looks like this:
0
1275
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 vertical alignment preventing me of having things "touch" each other. I have tried surrounding the controls in a DIV tag with padding set to 0 but...
0
1062
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 vertical alignment preventing me of having things "touch" each other. I have tried surrounding the controls in a DIV tag with padding set to 0 but...
2
2917
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 vertical alignment preventing me of having things "touch" each other. I have tried surrounding the controls in a DIV tag with padding set to 0 but...
11
3648
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 EOF/error), returns n-1 characters plus a appended null character.
2
4477
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 -I../include -g -02 -Wall -Wno-unused -pedantic -MT FileAppender.lo -MD -MP -MF .deps/FileAppender.Tpo -c FileAppender.cpp -fPIC -DPIC -o .libs/FileAppender.o...
8
1988
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 RequiredFieldValidator, the extra space goes away. Don't want that extra space, but want the validator. What can I do?
0
1253
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 afraid this is quite difficult as the webservice by default is used as the client calls the server for information modal. The server-side doesn't have...
0
7519
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7798
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8039
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6140
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5152
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3556
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3545
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2015
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 we have to send another system
1
1130
muto222
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.