This is an existing page on a Sitefinity site, with an existing Sitefinity form. I'm adding the code-behind to the page as the documentation explains by referencing my custom assembly in the page properties: Edit Page > Title and Properties > Code behind type (for ASP.NET developers).
If I change the class from extending System.Web.UI.Page to Telerik.Sitefinity.Modules.Forms.Web.UI.FormsControl, I get the runtime error 'mynamespace' is not allowed here because it does not extend class 'System.Web.UI.Page'
FieldControls does not exist for System.Web.UI.Page. There is no Title and Properties option to add a code-behind file to the Sitefinity form.
I've also tried using this.FindControl, but you have to know the control id. Looking at the source of the rendered page, the ID is "C001_ctl00_ctl00_C014_ctl00_ctl00_dropDown". How do I know this ID from code-behind? Same with jQuery - how do I determine this ID?
If I view source, in the Telerik js init method sets a "dataFieldName" for the control to "FormDropDownList_C014", which appears to be static. But I don't see how to select the control using this value.
Thanks for any help, this is driving me crazy!