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 references, and explicit strong type casting to custom User Control types.

The next chapter discusses caching issues that you might encounter while debugging your web applications.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset