tailieunhanh - Professional ASP.NET 3.5 in C# and Visual Basic Part 76

Professional in C# and Visual Basic Part 76. Building on the revolutionary release, adds several key new developer features including AJAX, LINQ, and a new CSS designer in Visual Web Developer 2008. The dramatic reduction in code that developers realized from the more than 50 new server controls in now allows developers the time to make their applications more interactive with AJAX, to work with data in their preferred language with LINQ, and to build visually attractive and consistent standards-based sites with CSS. . | Chapter 14 Site Navigation Listing 14-28 Working with the CurrentNode object VB @ Page Language VB script runat server language vb Protected Sub Page_Load ByVal sender As Object ByVal e As br _ br _ br _ br _ br _ br _ br _ End Sub script html xmlns http 1999 xhtml head runat server title SiteMapDataSource title head body form id form1 runat server asp Label ID Label1 runat server asp Label form body html C @ Page Language C script runat server protected void Page_Load object sender e br br br br br br br script As you can see from this little bit of code by using the SiteMap class and the CurrentNode object you can work with a plethora of information regarding the current page. Running this page you get the following results printed to the screen The Latest Market Information True Funds Finance 707 Chapter 14 Site Navigation Quotes Home Markets SiteNavigation Using the CurrentNode property you can actually create your own style of the SiteMapPath control as illustrated in Listing 14-29. Listing 14-29 Creating a custom navigation display using the CurrentNode property VB @ Page Language VB script runat server language vb Protected Sub Page_Load ByVal sender As Object ByVal e As .

TỪ KHÓA LIÊN QUAN