• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 403
  • 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

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

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