Hi,
I'm trying to update some custom bizfrom code from 4.1 to 6.0 but have a problem accessing the form field controls.
Previously to access a drop down list control I had the following code:
System.Web.UI.WebControls.DropDownList myform_drop1 = (System.Web.UI.WebControls.DropDownList)viewBiz.BasicForm.FieldControls["Drop1"];
string drop1_Option = myform_drop1.SelectedIndex.ToString();
...but I now get an error "Unable to cast object of type 'ASP.cmsformcontrols_basic_textboxcontrol_ascx' to type 'System.Web.UI.WebControls.TextBox'."
Does anyone know the correct code update to fix this?
Thanks,
Tim