control ID

4 posts, 0 answers
  1. Srikanth Vardarajan
    Srikanth Vardarajan avatar
    12 posts
    Member since:
    Sep 2009

    Posted 19 Oct 2009 Link to this post

    Hi,

    I am getting a issue as "Multiple Controls with same Id". Find control requires Unique Control id's.

    I am not setting any control ids through code. But i do not know where these are getting set and exception are getting thrown.

    Help me out as quick as possible.

    Thnx in advance.


  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 19 Oct 2009 Link to this post

    Hello Srikanth,

    Do you dynamically add any control as cached controls to your web page or user control, if you have any? if so, then you can probably go through the following MS support page which may provide you some insights:
    Multiple controls with the same ID

    If that doesnt help, try pasting your entire code here.

    Thanks
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Srikanth Vardarajan
    Srikanth Vardarajan avatar
    12 posts
    Member since:
    Sep 2009

    Posted 19 Oct 2009 Link to this post

    Hi,

    The article which you had reffered tells about the service pack which is available as a part of frame work 1.1. But I am using frame work 2.0.

    I feel the hotfix will be available as a part of frame work 2.0.

    I am pasting the exception:


    {"Exception of type 'System.Web.HttpUnhandledException' was thrown."}
        [System.Web.HttpUnhandledException]: {"Exception of type 'System.Web.HttpUnhandledException' was thrown."}
        Data: {System.Collections.ListDictionaryInternal}
        HelpLink: null
        InnerException: {"Multiple controls with the same ID 'gbccolumn' were found. FindControl requires that controls have unique IDs."}
        Message: "Exception of type 'System.Web.HttpUnhandledException' was thrown."
        Source: "System.Web"
        StackTrace: "   at System.Web.UI.Page.HandleError(Exception e)\r\n   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)\r\n   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)\r\n   at System.Web.UI.Page.ProcessRequest()\r\n   at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)\r\n   at System.Web.UI.Page.ProcessRequest(HttpContext context)\r\n   at ASP.usermanagement_usermaster_aspx.ProcessRequest(HttpContext context) in c:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\Temporary ASP.NET Files\\sss\056df7a5\\3f75a446\\App_Web_iws33lhz.6.cs:line 0\r\n   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()\r\n   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)"
        TargetSite: {Boolean HandleError(System.Exception)}


    Thnx in advance.

  5. Matt
    Matt avatar
    10 posts
    Member since:
    Feb 2006

    Posted 05 Nov 2009 Link to this post

    It looks like you are using a grid. Make sure that all your columns have a unique UniqueName value.
Back to Top