Solved

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

Posted on 2010-11-30
4
385 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

708 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

13 Experts available now in Live!

Get 1:1 Help Now