Foros del Web » Programando para Internet » ASPX (.net) »

Currando y no se como arreglar este error (SOY NUEVO LLEVO EN EL CURRO, SED BUENOS)

Estas en el tema de Currando y no se como arreglar este error (SOY NUEVO LLEVO EN EL CURRO, SED BUENOS) en el foro de ASPX (.net) en Foros del Web. Public Function GetCallbackResult() As String Implements System.Web.UI.ICallbackEventHandler.GetCallbackRes ult Dim array As New ArrayList Dim municip As String = "" Dim i As Integer = 0 ...
  #1 (permalink)  
Antiguo 05/09/2007, 02:02
 
Fecha de Ingreso: septiembre-2007
Mensajes: 8
Antigüedad: 16 años, 8 meses
Puntos: 0
Currando y no se como arreglar este error (SOY NUEVO LLEVO EN EL CURRO, SED BUENOS)

Public Function GetCallbackResult() As String Implements System.Web.UI.ICallbackEventHandler.GetCallbackRes ult
Dim array As New ArrayList
Dim municip As String = ""
Dim i As Integer = 0
Dim num_rows As Integer = arg.Tables(0).Rows.Count
Dim uno As String = arg.Tables(0).Rows(0)(0)
For i = 0 To num_rows - 1
municip = (municip & arg.Tables(0).Rows(i)(0) & "|")
Next
Return String.Format("{0}", municip)
End Function


El Error es el siguiente.

NO ROW AT POSITION 0.


NO LO ENTIENDO, agradezco vuestra atención.
  #2 (permalink)  
Antiguo 05/09/2007, 02:54
 
Fecha de Ingreso: septiembre-2007
Mensajes: 8
Antigüedad: 16 años, 8 meses
Puntos: 0
Re: Currando y no se como arreglar este error (SOY NUEVO LLEVO EN EL CURRO, SED BUENO

He adelantado un poco pero sigo más o menos igual, he indagado mas sobre el error pero no lo he solucionado, agradecería ayuda, de veras.

Lo nuevo es esto:
__pendingCallbacks[...].async' is null or not an object

Y esto viene de aqui:

function WebForm_CallbackComplete() {
for (i = 0; i < __pendingCallbacks.length; i++) {
callbackObject = __pendingCallbacks[i];
if (callbackObject && callbackObject.xmlRequest && (callbackObject.xmlRequest.readyState == 4)) {
WebForm_ExecuteCallback(callbackObject);
if (!__pendingCallbacks[i].async) { __synchronousCallBackIndex = -1;
}
__pendingCallbacks[i] = null;
var callbackFrameID = "__CALLBACKFRAME" + i;
var xmlRequestFrame = document.getElementById(callbackFrameID);
if (xmlRequestFrame) {
xmlRequestFrame.parentNode.removeChild(xmlRequestF rame);
}
}
}
}

Peta en la línea de amarillo, y de aquí si que no se como salir!


HHEELLPP!!!!
  #3 (permalink)  
Antiguo 05/09/2007, 04:09
 
Fecha de Ingreso: noviembre-2003
Mensajes: 5
Antigüedad: 20 años, 5 meses
Puntos: 0
Re: Currando y no se como arreglar este error (SOY NUEVO LLEVO EN EL CURRO, SED BUENO

Antes de "preguntar" por la propiedad async, debes comprobar que no sea nulo tu objeto
Código:
if (__pendingCallbacks[i]!=null){
   if (!__pendingCallbacks[i].async) { 
       __synchronousCallBackIndex = -1;
   }
}else{
       __synchronousCallBackIndex = -1;
}
Pero no sé si es eso a lo que te refieres
  #4 (permalink)  
Antiguo 05/09/2007, 04:54
 
Fecha de Ingreso: septiembre-2007
Mensajes: 8
Antigüedad: 16 años, 8 meses
Puntos: 0
Re: Currando y no se como arreglar este error (SOY NUEVO LLEVO EN EL CURRO, SED BUENO

Duda solucionada, avise al analista, cosa que quería evitar y la culpa es de............................RrrrrrrrrrRRRRRRRRRR rrrrrrrrrrrrrrRRRRRRRRRRrrrrr

MICROSOFT!!

Pusieron una variable global "var i = 0;" ¬¬' que casualmente tiene el mismo nombre que la mia, lo he reparado poniendo una declaracion de mi variable i antes del FOR y a correr, si es lo que decimos, .... de donde no hay no se puede sacar.... ayyyy Billy Billy...



Muchas gracias de todos modos Eliseo.
  #5 (permalink)  
Antiguo 05/09/2007, 07:32
Avatar de .seb  
Fecha de Ingreso: marzo-2006
Ubicación: Uruguay
Mensajes: 493
Antigüedad: 18 años, 1 mes
Puntos: 1
Re: Currando y no se como arreglar este error (SOY NUEVO LLEVO EN EL CURRO, SED BUENO

No tiene sentido, no se po rque se arreglo tu problema pero seguramente no es esa la explicacion.
Tengo todos mis iteradores con variables "i"

Para mi el error inicial esta claro:
Código:
Dim uno As String = arg.Tables(0).Rows(0)(0)
O bien aca la tabla no tiene filas
Código:
municip = (municip & arg.Tables(0).Rows(i)(0) & "|")
O es sta la que no tiene filas
__________________
saludos
seba
http://sgomez.blogspot.com
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 02:30.