Home
 Index > ASP.NET Web Applications > Could not find control 'xxx' in ControlParamete...

ASP.NET Web Applications:  SqlDataSource , FormView

Could not find control 'xxx' in ControlParameter 'xxx'

Error occurs for UpdateParameter ControlParameter's ControlID property.

Added on 3 Jun 2008

General Solutions:

Solution Summary:
The control is not being referenced correctly.
Solution Details:

The control referenced by the ControlParameter is contained within the FormView's EditItemTemplate.  Therefore it is a child control and needs to be referenced by it's parent control, i.e., the FormView's name.

<asp:ControlParameter ControlID="FormView1$HiddenField6" Name="MyID" Type="Int32" />
Was this solution useful? Yes No Added on 3 Jun 2008
Rating: 

Copyright 2010 © E-Centric, Inc. | Terms of Use