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 72 | Next

Rob Cameron and Dale Michalk

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

This control takes both an XML data source and an XML Style
Sheet Language Transformations (XSLT) style sheet to generate the final HTML output. An
XSLT style sheet can be brought to bear as an alternate UI generation paradigm that separates
the display of data from its source in a similar fashion to what we accomplished with templates
and data binding in the previous list controls demonstration.
An XML Control and XSLT Demonstration
The XML control web form generates an HTML table similar to the list controls demonstration,
using the same data source and the native XML support available in ADO.NET. Listings 1-13
and 1-14 provide the source code for our demonstration. Listing 1-13 presents the XML control
web form??™s ApressBooks.xslt file, and Listing 1-14 shows the code-behind file.
32 CHAPTER 1 ?–  SERVER CONTROL BASICS
Listing 1-13. The XMLControl Web Form .aspx File
<%@ Page Language="C#"
MasterPageFile="~/MasterPage/ControlsBook2MasterPage.Master"
AutoEventWireup="true" CodeBehind="XMLControl.aspx.cs"
Inherits="ControlsBook2Web.Ch01.XMLControls"
Title="XML Control Demo" %>

Width="14px">1  ID="ChapterTitleLabel" runat="server" Width="360px">
Server Control Basics and What's new in ASP.


Pages:
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6