Understanding Directives

ASP.NET directives can simply be described as instructions and settings used to describe how ASP.NET web form pages (.aspx) or User control (.ascx) pages will be processed by the .NET Framework. They are little do-dads that we insert in our ASP.NET pages to control how a page acts or the characteristics it has.

These directives aren’t very different from a person’s personality traits. Some people are shy, whereas others are outspoken. Some like loud, raucous music, whereas others enjoy the soft sounds of folk music. Some people can compute complicated math problems in their heads, and others can write wondrous stories that capture the imagination.

ASP.NET directives help you give your pages personality and capabilities. ...

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.