Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
270
Multiple controls with the same ID
posted

I have created template columns for button activity on a web grid, but attempting to sort the grid is resulting in the following error:

Multiple controls with the same ID 'ci_0_1_1' were found. FindControl requires that controls have unique IDs.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Multiple controls with the same ID 'ci_0_1_1' were found. FindControl requires that controls have unique IDs.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:
 
[HttpException (0x80004005): Multiple controls with the same ID 'ci_0_1_1' were found. FindControl requires that controls have unique IDs.]
   System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +220
   System.Web.UI.Control.EnsureNamedControlsTable() +57
   System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +106
   System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +289
   System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +289
   System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +289
   System.Web.UI.Page.FindControl(String id) +40
   System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +654
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3776

 

Any ideas how to rectify this problem.