Solved

Webparts Drop event

Posted on 2009-07-10
3
220 Views
Last Modified: 2012-05-07
Hi, I have 2 webpart zones and a single webpart that I want users to drag and drop from zone 1 to zone 2, or vise versa.
I want to update a database after every drop event.
I am now using "WebPartZone_PreRender" event to update my database, but that triggers on every post back.
How do I capture a user drag and drop event?
Thank you
0
Comment
Question by:ki_ki
  • 2
3 Comments
 
LVL 15

Accepted Solution

by:
jinal earned 50 total points
ID: 24829016
Hello ,

You can use WebPartManager Event .

WebPartManager has event called WebPartAdded  , WebPartAdding , WebPartMoving ,WebPartMoved. That might help you.

Please following msdn link.
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.webparts.webpartmanager.webpartadded.aspx
0
 
LVL 4

Author Comment

by:ki_ki
ID: 24833097
Thank you for your answer.
I'll try that on Monday.
Have a nice week end
0
 
LVL 4

Author Closing Comment

by:ki_ki
ID: 31602321
Thank you!
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

831 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