Sep 15, 2006 01:29 PM|Russ Helfand|LINK
Please allow me to allow to try to help you to fix this in the adapter kit, instead.
The adapters that handle the membership controls follow a similar pattern in their implementation. Let's look at the LoginAdapter as an example,
http://www.asp.net/CSSAdapters/srcviewer.aspx?inspect=%2fCSSAdapters%2fMembership%2fLogin.aspx. In particular, I want you to look at line 125 where the template container is being rendered. I'm considering changing that from:
foreach (Control c in container.Controls)
It would be helpful if you could try that fix out locally and let me know if it works well for you. Remember that the other membership control adapters are doing something similar in many cases so we'll need to make this fix in a few files, not just LoginAdapter.cs.
And, of course, we'll ultimately want to do it equally in VB and C#. I noticed from your article on the reg expression solution that you gave a C# example so I figured you were a C#-sort-of-person so I've given the proposed code to you in C#, naturally.
Good luck, however you end up working around this for now. Best regards,