Solved

How can I clean up the database with webparts delete event.

Posted on 2010-11-30
4
386 Views
Last Modified: 2012-05-10
I have a web part in which I get the data from user and save them in the database.

I also save the webpartid along with the user data.

How can I delete the entries in the database when the user deletes the webpart (using the delete verb)?

How can I add an extra event handler to the delete verb?


0
Comment
Question by:shankarmanickam
  • 2
4 Comments
 
LVL 20

Expert Comment

by:BuggyCoder
ID: 34242353
0
 
LVL 11

Expert Comment

by:SAMIR BHOGAYTA
ID: 34247525
Hello,

You have to use the truncate table for that. try this it is working,
0
 

Accepted Solution

by:
shankarmanickam earned 0 total points
ID: 34274410
The webpart manager has on delete event.

We can clear the backend data base using delete event handler.

0
 

Author Closing Comment

by:shankarmanickam
ID: 34308413
This is  a direct solution for the problem.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

911 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

18 Experts available now in Live!

Get 1:1 Help Now