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(); }
protected void ApproveRejectOrder_Command(object sender, CommandEventArgs e) { string orderID = (string)e.CommandArgument; if (e.CommandName == ApproveOrderCommand) { this._presenter.OnApproveOrder(orderID); } else if (e.CommandName == RejectOrderCommand) { this._presenter.OnRejectOrder(orderID); } ApproveOrderButton.CommandArgument = String.Empty; RejectOrderButton.CommandArgument = String.Empty; DetailsModalPopupExtender.Hide(); }
protected void EditDeleteOrder_Command(object sender, CommandEventArgs e) { string orderID = (string)e.CommandArgument; if (e.CommandName == EditOrderCommand) { this._presenter.OnEditOrder(orderID); } else if (e.CommandName == DeleteOrderCommand) { this._presenter.OnDeleteOrder(orderID); } EditOrderButton.CommandArgument = String.Empty; DeleteOrderButton.CommandArgument = String.Empty; DetailsModalPopupExtender.Hide(); }