Rob Cameron and Dale Michalk
"Pro ASP.NET 3.5 Server Controls and AJAX Components"
microsoft.com" imageurl="" target="" />
Listing 6-10. The Tag Parsing Menus Web Form Code-Behind Class File
using System;
namespace ControlsBook2Web.Ch06
{
public partial class TagParsingMenu : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
}
Summary
Templates are one of the two primary ways to modify the graphical content of an ASP.NET web
form. Templates provide a way for developers to declaratively insert raw HTML through server
controls into the output of a prebuilt control. Templates can be loaded dynamically through
Page.LoadTemplate or instantiated by classes that implement the ITemplate interface.
The ParseChildren attribute determines if ASP.NET parses a server control??™s inner tag
content in an .aspx page as child controls or child properties. The ControlBuilder attribute
allows a control to redirect the tag parsing process to a custom ControlBuilder class.
In the next chapter, we continue our discussion of template-based control by adding
databinding to the mix.
281
?– ?– ?–
C H A P T E R 7
Server Control Data Binding
The vast majority of web sites that provide dynamic content do so by rendering HTML that
represents a data source to a database back-end system.
Pages:
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393