Is it a standard aspx page or are you using it as a template within the cms? Kentico has a little different page lifecycle when it comes to setting properties, databinding, and events than the standard asp.net framework.
Do you mind posting the code not working with any other relevant information/code?