I had the same problem. I found that the problem is that I called the Render Page_Load function.
Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.PreRender
I completely missed the fact that the page loaded Page_Load as the default loading function, and then loaded it again when prerender started. I changed it to the following, and now the function is called only once:
Sub Renderer(ByVal sender As Object, ByVal e As EventArgs) Handles Me.PreRender
Munawar Ali
source share