03.11.2016 Views

Beginning ASP.NET 4.5 in CSharp and VB Opsylum

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

310 x CHAPTER 8 USER CONTROLS<br />

⊲ WHAT YOU LEARNED IN THIS CHAPTER<br />

@ Control directive<br />

@ Register directive<br />

AlternateText<br />

Mach<strong>in</strong>e.config<br />

User Control<br />

View State Properties<br />

ViewState collection<br />

A set of <strong>in</strong>structions that marks a file as a User Control <strong>and</strong> def<strong>in</strong>e its<br />

behavior.<br />

Used to register user controls <strong>and</strong> po<strong>in</strong>t to their source <strong>in</strong>side<br />

pages, master pages, <strong>and</strong> other user controls.<br />

The property that enables you to set the alt attribute on images<br />

that is shown when the image cannot be displayed.<br />

The central .<strong>NET</strong> configuration file that applies to your entire system<br />

<strong>and</strong> provides defaults for your website’s sett<strong>in</strong>gs.<br />

A block of content (stored <strong>in</strong> a file with an .ascx extension <strong>and</strong><br />

an optional Code Beh<strong>in</strong>d file) that can be reused <strong>in</strong> pages, master<br />

pages, <strong>and</strong> other user controls <strong>in</strong> your site.<br />

Properties at the page, master page, or user control level that store<br />

their values <strong>in</strong> View State so they can survive postbacks.<br />

The ViewState collection is the property on the Page,<br />

UserControl, <strong>and</strong> MasterPage classes that enables you to store<br />

<strong>and</strong> retrieve values us<strong>in</strong>g View State.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!