EpiServer 4.60 XForm FormControl = null

Tryig to modify the XForm in code but everytime I attempt to use the FormControl an exception occurs because it is null. For example if I attempt to modify controls by adding additional attributes and attempting to set the FormDefinition.
Aug 09, 2006 16:53
Tim, We just had this behaviour when the page using the form just inherited from System.Web.UI.Page. Inheriting from TemplatePage did the trick.
Aug 10, 2006 11:39
My page which uses the control already inherits from the TemplatePage.
Aug 10, 2006 17:01
Everything works frin until I try to access or use the FormControl - How is it initialised? I am using version: could this be the problem?
Aug 10, 2006 19:10
The issue was caused by me trying to integrate one of the other examples and missing a typo (lowercase/UPPERCASE) which my IDE didn't complain about either. Lessons learnt over reliance on IDE.
Aug 11, 2006 11:46
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.