Hi Roman,
Control IDs must be unique within their "naming container". Normally, the Page is the default container, so within each page the controls must have unique IDs.
The code on page 548 shows a LoginView control with different templates that define new naming containers. Since only one template can be active at any time, you can reuse the control IDs. When logged in you get LoginStatus1 from the RoleGroups element, otherwise you get the one from the LoggedInTemplate.
Hope this helps,
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of
Beginning ASP.NET 3.5 : in C# and VB,
ASP.NET 2.0 Instant Results and
Dreamweaver MX 2004
Want to be my colleague? Then check out this post.