Prev | Current Page 366 | Next

Rob Cameron and Dale Michalk

"Pro ASP.NET 3.5 Server Controls and AJAX Components"

Ch06"
Assembly="ControlsBook2Lib" %>
runat="server">
Width="14px">6  ID="ChapterTitleLabel" runat="server" Width="360px">
Server Control Templates

runat="server">


TemplateMenu Control




<>



Please follow the link of interest




Thanks for visiting this site








Listing 6-5. The TemplateMenu Web Form Code-Behind Class File
using System;
namespace ControlsBook2Web.Ch06
{
public partial class TemplateMenu : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
268 CHAPTER 6 ?–  SERVER CONTROL TEMPLATES
}
}
}
Checking the Rendered HTML
The HTML rendered by the TemplateMenu control verifies that the control has successfully
included the templates in its output:



Please follow the link of interest



354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378