public void ShowOrderDetails(Order order) { OrderPreviewPart.ShowOrder(order); //Programmatically show the popup. A non operational control was needed to put as the TargetControlID of the //extender in order to show the popup programmatically (this could not be done client-side, //because we need to populate de details of the selected order) DetailsModalPopupExtender.Show(); }
public void ShowOrderDetails(Order order) { //Tell the button which order to approve or reject when clicking on them ApproveOrderButton.CommandArgument = order.OrderId.ToString(); RejectOrderButton.CommandArgument = order.OrderId.ToString(); OrderPreviewPart.ShowOrder(order); //Programmatically show the popup. A non operational control was needed to put as the TargetControlID of the //extender in order to show the popup programmatically (this could not be done client-side, //because we need to populate de details of the selected order) DetailsModalPopupExtender.Show(); }