Solved

Custom ProfileProvider automatically (needlessly) calls SetPropertyValues

Posted on 2009-05-13
1
452 Views
Last Modified: 2012-05-06
Experts,

I have created a Custom ProfileProvider which uses a connection to a Paradox DB.  Works great.

The problem is that a visit to any webpage invokes BOTH GetPropertyValues and SetPropertyValues.   The "get" is the only one required (and expected).

How can I restrict the call to SetPropertyValues to a button_click?

Capt
0
Comment
Question by:Glen Gibb
1 Comment
 

Accepted Solution

by:
Glen Gibb earned 0 total points
ID: 24395017
Found the answer!  

For anyone looking to solve the same problem, all you do is add the automaticSaveEnabled="false" to the provider in the web.config file.  This shuts off the page invoking an unexpected Update to the DB.
    <profile enabled="true" defaultProvider="SllProfileProvider" >
      <providers>
        <add
	  name="SllProfileProvider"
	  type="ParadoxProfileProvider.SllProfileProvider"
	  connectionStringName="cnnParadox"
	  applicationName="SLL"
          automaticSaveEnabled="false" />
      </providers>
    </profile> 

Open in new window

0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
This video teaches users how to migrate an existing Wordpress website to a new domain.
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now