Rank: Newbie Groups: Member
Joined: 7/29/2011 Posts: 4
|
The thing is, many the page is no rerendered when the taskbar work is done, its stays the same. This is the code of the process
Code: Visual Basic.NET
Protected Sub ProgressBar1_RunTask(ByVal sender As Object, ByVal e As EO.Web.ProgressTaskEventArgs)
System.Threading.Thread.Sleep(1000) 'Se usa para que funcione un metodo que deshabilita el boton.
Dim cuenta As Integer 'Se usa como indice en el for que recorre cierto arreglo.
Dim Descarga = False 'Se usa para validar si ocurre un error al descargar el libro.
Dim arregloseleccionado(Me.ListBoxItinerario.GetSelectedIndices().Length - 1) As Integer 'Arreglo en el que se almacenan los itinerarios a descargarse.
arregloseleccionado = Me.ListBoxItinerario.GetSelectedIndices()
Try
For cuenta = 0 To arregloseleccionado.Length - 1
e.UpdateProgress(0)
If Procedimiento.Descargar(Ciclo.SelectedValue, Cod_unicom.SelectedValue, Ruta.SelectedValue, ListBoxItinerario.Items(arregloseleccionado(cuenta)).ToString, e) Then
Descarga = True
Else
Descarga = False
Exit For
End If
Next
'Validamos si se descargo correctamente el listado de itinerarios.
System.Threading.Thread.Sleep(500)
If Descarga Then
Me.ListBoxItinerario.Items.Clear()
Proceso.Fill_ListBox_DS(DataSet, Me.ListBoxItinerario, Consultas.GetItinerarios(Ciclo.SelectedValue, Cod_unicom.SelectedValue, Ruta.SelectedValue), "Num_itin", "Num_itin", "Itinerario")
Me.Mensaje.ForeColor = Drawing.Color.Black
Me.Mensaje.Text = "Se descargo el libro"
Else
Me.ListBoxItinerario.Items.Clear()
Proceso.Fill_ListBox_DS(DataSet, Me.ListBoxItinerario, Consultas.GetItinerarios(Ciclo.SelectedValue, Cod_unicom.SelectedValue, Ruta.SelectedValue), "Num_itin", "Num_itin", "Itinerario")
Me.Mensaje.ForeColor = Drawing.Color.Red
Me.Mensaje.Text = "Error al descargar el libro"
End If
Catch ex As Exception
Me.ListBoxItinerario.Items.Clear()
Proceso.Fill_ListBox_DS(DataSet, Me.ListBoxItinerario, Consultas.GetItinerarios(Ciclo.SelectedValue, Cod_unicom.SelectedValue, Ruta.SelectedValue), "Num_itin", "Num_itin", "Itinerario")
Me.Mensaje.ForeColor = Drawing.Color.Red
Me.Mensaje.Text = "Error al descargar el libro"
End Try
End Sub
this part
Code: Visual Basic.NET
If Descarga Then
Me.ListBoxItinerario.Items.Clear()
Proceso.Fill_ListBox_DS(DataSet, Me.ListBoxItinerario, Consultas.GetItinerarios(Ciclo.SelectedValue, Cod_unicom.SelectedValue, Ruta.SelectedValue), "Num_itin", "Num_itin", "Itinerario")
Me.Mensaje.ForeColor = Drawing.Color.Black
Me.Mensaje.Text = "Se descargo el libro"
Else
Me.ListBoxItinerario.Items.Clear()
Proceso.Fill_ListBox_DS(DataSet, Me.ListBoxItinerario, Consultas.GetItinerarios(Ciclo.SelectedValue, Cod_unicom.SelectedValue, Ruta.SelectedValue), "Num_itin", "Num_itin", "Itinerario")
Me.Mensaje.ForeColor = Drawing.Color.Red
Me.Mensaje.Text = "Error al descargar el libro"
End If
Its executed perfectly, but its not rendered. I need to press F5 to see the changes, how can i solve this?
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Please let us know whether you have a license for any of our product. We do not offer free tech support on our free controls. So we will respond questions on free controls only if you are already a paid user.
Thanks!
|
Rank: Newbie Groups: Member
Joined: 7/29/2011 Posts: 4
|
looks like i'll be breaking my head trying to figure this one out by myself
|