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?
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?
Hello,
You have to use the truncate table for that. try this it is working,
You have to use the truncate table for that. try this it is working,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This is a direct solution for the problem.
http://www.sharepointdev.net/sharepoint--development-programming/populate-the-webpart-programatically-on-featureactivated-event-45287.shtml