jueves, 1 de junio de 2017

Grid & Update panel y un error raro

Tengo un el tipo grid en un upate panel ,  cuando se pulsa el botón de consultar te lleva al detalle de la línea.

Unas veces me funciona bien y otras daba el error:

Uncaught Error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500

El problema estaba en número de datos, mi grid tenía 28.000 registros . 

La solución en mi caso:

<system.web>
<httpRuntime maxRequestLength="2097151" />
</system.web>