Solved

Custom ProfileProvider automatically (needlessly) calls SetPropertyValues

Posted on 2009-05-13
1
450 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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

New Relic: Our company recently started researching several products to figure out what were the best ways for us to increase our web page speed and to quickly identify performance problems that we may be having. One of the products we evaluated wa…
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…
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.
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.

728 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

14 Experts available now in Live!

Get 1:1 Help Now