473,479 Members | 2,117 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Profile Providers

Hi all,
I just started using ASP.NET 2.0 Profile Providers and I have a question:

The scenario:

Without using the CreateUserWizard I:

1. Manually create a user
2. Manually create a profile for that user if the user is sucessfully
created.
3. Change some values of the profile.
4. Call myProfile.Save()

All works fine with the exception of fields that I do not specify a value.
Those fields are Null in the database, instead of the default value I gave
them on web.config.

If I manually set myProfile.PropertyValues["myField"].IsDirty = true then
the default value gets saved, but I wonder why I need to perform this step.

I have almost 50 fields like that, I'm trying to avoid having to do this to
every single one.

Any feedback is appreciated.

Thanks,
Fernando

Feb 9 '07 #1
0 886

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

Similar topics

3
1076
by: john_teague | last post by:
I am trying to do a sample app using membership and profile. I'm using the standard providers (with a different database, but ran the aspnet_regsql). I'm having difficulty with the Profile. ...
0
6226
by: Anonieko | last post by:
A lot of times, web hostings for ASPNET 2.0 will offer only MS Access DB for database for basic plan, a question often asked is how can I use the membership services, role, web parts services, etc ...
2
6340
by: Peter Afonin | last post by:
Hello, I'm using CreateUserWizard control in ASP.NET 2.0. I'm storing the data in SQL Server 2005. The first and last steps run smoothly without any problems. But I added one middle step to...
0
1310
by: jwallis | last post by:
I have two systems, one for 'Test' and one for 'Live' and each has a Sql Server. When 'Test' code is published to 'Live' I currently have to edit connection strings in web.config to ensure that...
1
1248
by: vishnu | last post by:
I am working on Profile system.I am using CreateUserWizard control for creating New User.I want to add more information other than (UserName,Email,Password,ConfirmPassword.....) such as...
11
2075
by: Weston Weems | last post by:
I've got the need to have user information for logged in user in a readily avaliable page context (a lot like how Profile is) except not suck. Before we jump to any conclusions, from what I...
9
3257
by: Kirk | last post by:
I have successfully, implemented a custom Membership Provider to a SQL 2000 table, however, I am having problems doing the same with a Profile Provider. As I understand it, the steps for both of...
2
2736
by: Annie | last post by:
Hello guys, I have set the MEMBERSHIP, ROLEMANAGER and PROFILE in my config file as below. I just want to use my own sql server 2000 table instead of MSDB.
2
1396
by: shapper | last post by:
Hello, I have an ASP.NET page and in its runtime code I am trying to get an user profile, change it and save it. It works if I use Profile, which is the profile for the current authenticated...
1
2512
by: Mike | last post by:
Hi: I have been trying to create a web application that provides suport for two membership/profile databases: one for private users and one for another set of users. These tw user have a...
0
7033
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6903
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
7071
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...
0
6861
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4763
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
2987
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
2974
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1291
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 ...
0
170
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.