Last post Mar 28, 2009 09:43 AM by erwilliams
Mar 27, 2009 10:58 PM|erwilliams|LINK
I'm currently creating a server control that includes a few elements that need unique ids. Since this control may be included multiple times per page, I'm mimicking ASP.NET's usual naming scheme by concatenating this.UniqueId with the name of the element.
This achieves the desired effect but I was wondering if there was an existing/better way to do this.
Mar 27, 2009 11:48 PMemail@example.com|LINK
You just add the control id + element id. The usercontrol will have an id you can append that with the element you creating it
Mar 27, 2009 11:54 PMfirstname.lastname@example.org|LINK
Mar 28, 2009 09:43 AM|erwilliams|LINK
That's how I'd been doing it. Just making sure that was the usual way. Thanks.