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

Professional in C# and Visual Basic Part 103. 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 20 AJAX Control Toolkit title SlideShowExtender Control title head body form id form1 runat server div asp ScriptManager ID ScriptManager1 runat server asp ScriptManager asp Panel ID Panel1 runat server Width 300px HorizontalAlign Center cc1 SlideShowExtender ID SlideShowExtender1 runat server ImageTitleLabelID LabelTitle TargetControlID Image1 UseContextKey True NextButtonID ButtonNext PlayButtonID ButtonPlay PreviousButtonID ButtonPrevious SlideShowServiceMethod GetSlides ImageDescriptionLabelID LabelDescription cc1 SlideShowExtender asp Label ID LabelTitle runat server Text Label Font-Bold True asp Label br br asp Image ID Image1 runat server ImageUrl Images br asp Label ID LabelDescription runat server Text Label asp Label br br asp Button ID ButtonPrevious runat server Text Previous asp Button ID ButtonNext runat server Text Next asp Button ID ButtonPlay runat server asp Panel div form body html The SlideShowExtender control has a lot of available properties available. You can specify the location where you are defining the image title and description using the imageTitleLabeliD and the ImageDescriptionLabelID properties. In addition to that this page contains three Button controls. One to act as the Previous button another for the Next button and the final one as the Play button. However it is important to note that when the Play button is clicked to start the slideshow it turns into the Stop button. The slideShowServiceMethod property is important because it points to the server-side method that returns the images that are part of the slide show. In this case it is referring to a method called GetSlides which is represented here in Listing 20-29. Listing 20-29 The GetSlides method implementation VB Partial Class SlideShowExtender Inherits _ 978 Chapter 20 AJAX Control Toolkit Public Shared Function GetSlides ByVal .

TỪ KHÓA LIÊN QUAN