Ryan McDonnell - Pursuing Web Application Zen

Duplicate WebControls at runtime

Friday, August 3rd, 2007 at 10:49 am

Duplicate WebControls at runtime

A simple solution to duplicating or mirroring a control at runtime. The beauty of this method is that server-side events are still attached to the mirrored controls. The major disadvantage is that the mirrored controls are rendered with the same Id on the client. This can be problematic if you need JavaScript to reference to the controls by Id. It also technically breaks standards by using the same Id twice in the output.

Leave a Comment

The following tags are allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

About Ryan McDonnell

I am a web application developer living in southern California. Commonly called a “jack of all trades” by collegues, I constantly strive to broaden my knowledge into other fields.
More about Ryan McDonnell »


 Subscribe in a reader

Quick Links & Notes

© 2004-2008 Ryan McDonnell. View my profile on LinkedIn
Some rights reserved under the Creative Commons Attribution-Share Alike 3.0 United States License.