Multiple controls with the same ID

Witchayanin Maythangkul asked on May 14, 2015 07:12

I have create webpart in same id and it error "Message: Multiple controls with the same ID 'CampaignSurvey' were found. FindControl requires that controls have unique IDs.". How can I fix it

Recent Answers

Charles Matvchuk answered on May 14, 2015 15:07

In the web part when you assign it to the page at the top of its properties is the ID. If you are hard coding in a custom web part, don't do that. Use dynamic properties in the code behind and pull them from the web part properties/fields.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.