protected void llenaformulario(object sender, EventArgs e) { // cargaYMS(false); // uptform.Controls.Clear(); LugarBC lugar = new LugarBC(); lugar = lugar.obtenerXID(Int32.Parse(id_destino_formulario.Value.Replace("lug_", ""))); if (solicitudMovimiento.SelectedValue == "1" || 1 == 1) { // Spinner1 = (control_descarga)LoadControl("~/control_descarga.ascx"); solicud_descarga.Visible = true; this.btn_confirmar.Enabled = solicud_descarga.carga(DateTime.Now.ToShortDateString(), DateTime.Now.ToShortTimeString(), Convert.ToInt32(dropsite.SelectedValue), trailer_seleccionado.Value, lugar.ID, lugar.ID_PLAYA, lugar.ID_ZONA); // ScriptManager.GetCurrent(this.Page).RegisterAsyncPostBackControl(Spinner1); // uptform.Controls.Add(Spinner1); // AsyncPostBackTrigger trigger1 = new AsyncPostBackTrigger(); // trigger1.EventName = "selectedindexchanged"; // trigger1.ControlID = Spinner1.FindControl("ddl_origenZona").UniqueID; // this.UPT.Triggers.Add(trigger1); } UPT.Update(); this.ClientScript.RegisterStartupScript(this.GetType(), "modal2", " $('#ModalFiltro').modal();"); }
public void UpdateProgressText(string message) { if (ProgressLabel.InvokeRequired) { UPT d = UpdateProgressText; try { this.Invoke(d, new object[] { message }); } catch (ObjectDisposedException) { } } else { ProgressLabel.Text = message; } }
/// <summary> /// Update the progress text description. /// </summary> /// <param name="message">Message to set as description.</param> private void UpdateProgressText(string message) { if (IsDisposed || ProgressLabel.IsDisposed) { return; } if (ProgressLabel.InvokeRequired) { UPT d = UpdateProgressText; try { Invoke(d, new object[] { message }); } catch (ObjectDisposedException) { } } else { ProgressLabel.Text = message; } }