Solved

Custom ProfileProvider automatically (needlessly) calls SetPropertyValues

Posted on 2009-05-13
1
454 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Turn Insights into Action

Communication across every corner of your business is essential to increase the velocity of your application delivery and support pipeline. Automate, standardize, and contextualize your communication processes with xMatters.

Question has a verified solution.

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

Developer tools in browsers have been around for a while, yet they are still heavily underused by developers. Developers still fix html or CSS then refresh page to see effect, or they put alert or debugger in JavaScript and then try again and again …
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.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

691 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