Solved

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

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

813 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

17 Experts available now in Live!

Get 1:1 Help Now