views:

22

answers:

0

Hi all, I am having 2 web parts(these 2 web parts are user controls and placed in a same page) which are interconnected.

1) In the first web part, I am deleting a listitem from a list1 and adding that listitem to another list name list2 by clicking a button.

2) In the second web part, I am showing the items in the 2nd list in a gridview.

The problem in this process is when I am clicking the button, first the pageload event of the both web parts are fired, then the button click event was fired. So the item in the list1 is not deleted and added to the list2, so the gridview in the 2nd webpart is not updated. But I want the gridview to be updated after the button event is fired.

How to solve this issue??

related questions