Ver Mensaje Individual
  #2 (permalink)  
Antiguo 03/09/2008, 08:40
wilferd
 
Fecha de Ingreso: mayo-2008
Mensajes: 19
Antigüedad: 16 años
Puntos: 0
Respuesta: obtener fila y columna de Gridview desde jScript

puedes hacerlo de esta forma... en tu page_load colocas:


dim t1 As Textbox
dim i As integer
dim row as GridViewRow

for i=0 to GridView1.Rows.Count -1

row =GridView1.Rows(i)

if row.RowType = DataControlRowType.DataRow then

t1=row.FindControl("Textbox1")

t1.Attributes.Add("onblur","javascript:return funcion(this);")


solo debes cambiar el nombre de tu textbox,GridView y el de tu funcion para validar

funcion(e){

var valor = e.value;

if (valor==null){
alert('no encontro nada');
}
else{
alert('El valor es:' & valor);
}

}


Pruebalo y me cuentas!!!