Hi,
The controls are probably not direct childcontrols to formview. Try this
TextBox txtIncidentDatei = FindControlRecursive(FormView1, "txtIncidentDatei") as TextBox;
.
.
.
public static Control FindControlRecursive(Control root, string id) {
if ((root.ID != null) && (root.ID == id)) return root;
foreach (Control ctrl in root.Controls) {
Control found = FindControlRecursive(ctrl, id);
if (found != null) return found;
}
return null;
}
/peter