protected void btnOK_ClickAction(object sender, EventArgs e) { ISalesOrder salesOrder = BindingSource.Current as ISalesOrder; bool submitSalesOrder = Convert.ToBoolean(DialogService.DialogParameters["SubmitSalesOrder"].ToString()); salesOrder.CompleteUpdatedErpPricingLines(submitSalesOrder); Response.Redirect(Request.Url.ToString()); }