JQuery UI Dialog without ID twice

Trying to put multiple dialogs on one page - they need to be able to come up more than once.  I'm using ASP.NET so the ID's of the content to go in the dialogs are mangled.  All of the examples for bringing up the dialog multiple times seem to work with getting the initialized dialog back the second time by using the contents ID.

I see a couple of possible solutions but they seem like hacks:  
1.) Store the .net mangled ID in some other field when I first bring up the dialog, and use that the second time around.  
2.) Use the dialog events to put the contents of the dialog back into its original location in the dom when the dialog is closed.

    <ol>
       <li><div id="dotnetmangledjunk_Meaningful">stuff to go in the dialog</div></li>
       <li><div id="dotnetmangledjunk_Meaningful">stuff to go in the dialog</div></li>
    </ol>

Similar questions [here](http://stackoverflow.com/questions/366854/jquery-ui-dialog-box-close-function) and [here](http://stackoverflow.com/questions/366696/jquery-dialog-box)
JQuery UI Dialog without ID twice
===


Trying to put multiple dialogs on one page - they need to be able to come up more than once.  I'm using ASP.NET so the ID's of the content to go in the dialogs are mangled.  All of the examples for bringing up the dialog multiple times seem to work with getting the initialized dialog back the second time by using the contents ID.

I see a couple of possible solutions but they seem like hacks:  
1.) Store the .net mangled ID in some other field when I first bring up the dialog, and use that the second time around.  
2.) Use the dialog events to put the contents of the dialog back into its original location in the dom when the dialog is closed.

    <ol>
       <li><div id="dotnetmangledjunk_Meaningful">stuff to go in the dialog</div></li>
       <li><div id="dotnetmangledjunk_Meaningful">stuff to go in the dialog</div></li>
    </ol>

Similar questions [here](http://stackoverflow.com/questions/366854/jquery-ui-dialog-box-close-function) and [here](http://stackoverflow.com/questions/366696/jquery-dialog-box)