Profile Providers

  • Thread starter Fernando Chilvarguer
  • Start date
F

Fernando Chilvarguer

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top