[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Custom ProfileProvider automatically (needlessly) calls SetPropertyValues

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

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

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

Thoughout my experience working on eCommerce web applications I have seen applications succumbing to increased user demand and throughput. With increased loads the response times started to spike, which leads to user frustration and lost sales. I ha…
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
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.
Suggested Courses
Course of the Month18 days, 12 hours left to enroll

834 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