Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# desunit 8/11/2007 11:40 PM
I created a new module with Administration page. This page has GridView when I tried to get value SelectedValue everything is thing. But odd things started when I tried to move the GridView into .ascx which embeded into Admin page - selectedvalue is always null.

I opened sources and noticed that GenericBasePage.OnInit load BasePageControl which acts as container. It seems that OnInit for this is too late - I move all code from GenericBasePage.OnInit to GenericBasePage.OnPreInit and SelectedValue starts working fine.

It would be safe to move it in the next release.
# Efie 8/13/2007 10:01 AM
For the loading of controls this would indeed be a good idea, it will give developers some more point to hook in to the code, but this code was created in the first version of Cuyahoga on the 1.1 version of the framework and the PreInit event didn't exist.