Exposing Properties and Methods to Your ASP.NET Pages

I’ve slipped and included some of what I am going to explain here in the previous example, but I didn’t want to make the previous example too plain vanilla. I am trying to get the gears rolling in your head, and one way I like to do that is not giving examples that are so, well, boring when I introduce new concepts.

User controls are, as I’ve said at least twice if not three times, objects just like everything else in the .NET Framework, and because of this we can use them and their properties and methods in ASP.NET web form pages just like other objects. Here you’ll investigate, explore, and uncover ways of using this stuff in your applications.


There are two different types ...

Get ASP.NET for Web Designers now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.