OnItemDataBound registers Link Buttons in List View to Update Panels Script Manager, However, They only Work on the first click
0 I have an update panel with ChildrenAsTriggers set to true so there is no actual script manager defined on the ascx file or in the code behind file. Inside there is a list view, whos OnItemDataBound calls this function: // ------------------------------------------------ // Register Update Panel Async Postback Triggers for View Order Buttons // ------------------------------------------------ protected void orderListView_ItemDataBound(object sender, ListViewItemEventArgs e) var scriptManager = ScriptManager.GetCurrent(Page); LinkButton lbOne = e.Item.FindControl("viewOrder") as LinkButton; scriptManager.RegisterAsyncPostBackControl(lbOne); // ToolkitScriptManager This is supposed to take the LinkButton inside the List View, and register the buttons so a hard refresh does not occur when it is clicked. For some reason, it only works on the first click of the link button in the list view. If I click it again, it does a hard refresh and buttons no longer seemed...