Two Edit Boxes

4 posts, 0 answers
  1. Stephen
    Stephen avatar
    38 posts
    Member since:
    Mar 2008

    Posted 18 Dec 2008 Link to this post

    Is there a problem with having two RadEditor boxes on a form. I'm getting an error about "

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

    when I have a form that dynamically adds two RadEditors but it works find on pages which only add one editor.
  2. Serrin
    Serrin avatar
    286 posts
    Member since:
    Sep 2008

    Posted 19 Dec 2008 Link to this post

    Stephen,

    My guess is this problem would come from adding two editors that have the same ID= tag, it will work fine with only one editor since only one would be defined as 'dialogOpener'.  When you're creating the editors, maybe try to give them unique names (i.e., if you're doing some iteration, use the iteration value and tack that onto the end of the ID assigned, so one would be dialogOpener1 and the other dialogOpener2, etc.). 
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Stephen
    Stephen avatar
    38 posts
    Member since:
    Mar 2008

    Posted 19 Dec 2008 Link to this post

    The obvious answer, and I had thought that this was taken care off. The problem is order of operation. You need to assign the unique ID BEFORE you set DialogHandlerUrl (which I just added in order to make my dialogs work with routing in place).
  5. Serrin
    Serrin avatar
    286 posts
    Member since:
    Sep 2008

    Posted 19 Dec 2008 Link to this post

    Ooh, good call.  I never realized the order of setting stuff was key in such a situation.  I'll have to remember that for next time I run into the Multiple controls error. :)
Back to Top