Link to home
Start Free TrialLog in
Avatar of shankarmanickam
shankarmanickam

asked on

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?


Avatar of BuggyCoder
BuggyCoder
Flag of India image

Avatar of SAMIR BHOGAYTA
Hello,

You have to use the truncate table for that. try this it is working,
ASKER CERTIFIED SOLUTION
Avatar of shankarmanickam
shankarmanickam

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of shankarmanickam
shankarmanickam

ASKER

This is  a direct solution for the problem.