This is a migrated thread and some comments may be shown as answers.

control ID

3 Answers 47 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Srikanth Vardarajan
Top achievements
Rank 1
Srikanth Vardarajan asked on 19 Oct 2009, 10:44 AM
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.


3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 19 Oct 2009, 11:28 AM
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.
0
Srikanth Vardarajan
Top achievements
Rank 1
answered on 19 Oct 2009, 12:46 PM
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.

0
Matt
Top achievements
Rank 1
answered on 05 Nov 2009, 09:16 PM
It looks like you are using a grid. Make sure that all your columns have a unique UniqueName value.
Tags
General Discussions
Asked by
Srikanth Vardarajan
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Srikanth Vardarajan
Top achievements
Rank 1
Matt
Top achievements
Rank 1
Share this question
or