asp.nethtmlwebformshtml-renderingrendering-engine

How does ASP.NET Webforms decide HTML name of a control?


In ASP.NET web forms when a control is rendered on the page, the ID of each field is modified with the ctrl01 as needed to ensure collisions don't happen (aka myField becomes ctrl01$myField or whatnot).

I was wondering where one might find details on HOW the algorithm itself works, or where it might be I can find it. I am assuming the INamingContainer has something to do with this-- but alas I cannot find the part which actually decides the rendered field name.

Any help would be awesome!


Solution

  • You are probably looking for this msdn article.