I have a table with one row and two cells. In one of the cells there is a div that can be drag and dropped between the two cells. On hovering over the div an 'edit' button pops up, on clicking this the page is posted back.
Before dragging the div tag, the LinkButton posts back fine and the click event is executed. The problem I have is once the div has been dragged in to the other cell, the LinkButton posts back the page but does not fire the click event.
Does anyone have any ideas why changing the DOM would affect the server-side click event?
coxyarmadill...
Member
1 Points
7 Posts
LinkButton Postback not working after altering DOM
Nov 07, 2012 10:56 PM|LINK
Hi,
I have a table with one row and two cells. In one of the cells there is a div that can be drag and dropped between the two cells. On hovering over the div an 'edit' button pops up, on clicking this the page is posted back.
Before dragging the div tag, the LinkButton posts back fine and the click event is executed. The problem I have is once the div has been dragged in to the other cell, the LinkButton posts back the page but does not fire the click event.
Does anyone have any ideas why changing the DOM would affect the server-side click event?
Many thanks,
Kenny.
Chen Yu - MS...
All-Star
21569 Points
2493 Posts
Microsoft
Re: LinkButton Postback not working after altering DOM
Nov 15, 2012 02:34 AM|LINK
Hi,
If you use jquery, you could reference on below thread. It may help you.
http://stackoverflow.com/questions/6658752/jquery-click-event-doesnt-work-on-dynamically-generated-elements
If not, would you please post your code? It will provide us more information about your issue. Thanks a lot.
Thanks.
Feedback to us
Develop and promote your apps in Windows Store