SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 379 | Next

Rob Cameron and Dale Michalk

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

apress.com" imageurl=""
target="" />
imageurl="" target="" />
imageurl="" target="" />

The BuilderMenu control needs tags with the ???data??? name so that the MenuControlBuilder
grabs each item and passes it into the control:





Figure 6-9 shows that the final result for the two controls in the browser after they are
rendered is identical.
CHAPTER 6 ?–  SERVER CONTROL TEMPLATES 279
Figure 6-9. The Tag Parsing Menu web form displayed in a browser
Listings 6-9 and 6-10 contain the full code for the web form.
Listing 6-9. The TagParsingMenus Web Form .aspx File
<%@ Page Language="C#"
MasterPageFile="~/MasterPage/ControlsBook2MasterPage.Master"
AutoEventWireup="true" CodeBehind="TagParsingMenu.aspx.cs"
Inherits="ControlsBook2Web.Ch06.TagParsingMenu"
Title="Tag-Parsing Menu Controls Demo" %>
<%@ Register TagPrefix="apress" Namespace="ControlsBook2Lib.


Pages:
367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391
Nieoficjalna strona EURO 2012 kredyty hipoteczne Karpacz Trening koni Nokia 5800 XpressMusic