EpiServer 4.60 XForm FormControl = null

Vote:
 
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.
#12735
Aug 09, 2006 16:53
Vote:
 
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.
#14801
Aug 10, 2006 11:39
Vote:
 
My page which uses the control already inherits from the TemplatePage.
#14802
Aug 10, 2006 17:01
Vote:
 
Everything works frin until I try to access or use the FormControl - How is it initialised? I am using version: 4.60.0.165 could this be the problem?
#14803
Aug 10, 2006 19:10
Vote:
 
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.
#14804
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.