Summary
In this chapter, you looked at some of the idiosyncrasies of dealing with User Controls in ASP.NET web applications. We started by discussing some of the basic errors and problems that you might run into with User Controls. We then added a property to your User Control and took a look at some of the errors that can occur if proper scope modifiers and code execution order rules are not followed. We then covered problems encountered by User Control methods, including how to handle problems with modifying the Controls collection of the User Control and how to access out-of-scope controls. We rounded out the chapter by creating a dynamically loaded User Control. Some of the issues covered here included class name declaration, User Control ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access