[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Custom ProfileProvider automatically (needlessly) calls SetPropertyValues

Posted on 2009-05-13
1
Medium Priority
?
457 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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

Introduction A frequently used term in Object-Oriented design is "SOLID" which is a mnemonic acronym that covers five principles of OO design.  These principles do not stand alone; there is interplay among them.  And they are not laws, merely princ…
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.
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…
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.

656 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