MrPaul
Well-known member
Usually if Im having a problem I can find others whove had the same problem, and so discover either a solution or that there is none. After a couple of hours on Google I havent found a single person reporting this problem, which amazes me considering the simplicity of the task I am trying to perform.
I have an UpdatePanel which contains a Repeater and a two LinkButton controls - one LinkButton causes an item to be added to the Repeaters data list, the other causes a random item to be removed from the list. Both these buttons work as they should, causing a partial page update which updates the UpdatePanel but does not refresh the entire page.
Within the ItemTemplate of the Repeater there is a single LinkButton which when clicked, removes only that item. Its a common enough scenario:
View attachment 1304
The problem is that the LinkButtons in the Repeater are not causing a partial page update (or asynchronous postback), they are causing full postbacks! I have tried everything I could think of, including:
The fact that both of the LinkButtons outside the Repeater are working correctly indicates that the problem is not due to data binding. Code follows in the next post...
I have an UpdatePanel which contains a Repeater and a two LinkButton controls - one LinkButton causes an item to be added to the Repeaters data list, the other causes a random item to be removed from the list. Both these buttons work as they should, causing a partial page update which updates the UpdatePanel but does not refresh the entire page.
Within the ItemTemplate of the Repeater there is a single LinkButton which when clicked, removes only that item. Its a common enough scenario:
View attachment 1304
The problem is that the LinkButtons in the Repeater are not causing a partial page update (or asynchronous postback), they are causing full postbacks! I have tried everything I could think of, including:
- Setting ChildrenAsTriggers="false" and manually adding an AsyncPostBackTrigger for the Repeater - no change
- Calling ScriptManager.RegisterAsyncPostBackControl in Page_Load - no change
- Moving the 2 working LinkButtons outside the UpdatePanel, leaving only the Repeater - no change
- Placing a LinkButton inside the FooterTemplate - this also causes a full postback
The fact that both of the LinkButtons outside the Repeater are working correctly indicates that the problem is not due to data binding. Code follows in the next post...