Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 404
  • Last Modified:

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

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
shankarmanickam
Asked:
shankarmanickam
  • 2
1 Solution
 
SAMIR BHOGAYTAFreelancer and IT ConsultantCommented:
Hello,

You have to use the truncate table for that. try this it is working,
0
 
shankarmanickamAuthor Commented:
The webpart manager has on delete event.

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

0
 
shankarmanickamAuthor Commented:
This is  a direct solution for the problem.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now