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

Rob Cameron and Dale Michalk

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


Note that some of controls (such as the HtmlInputText control) map to multiple HTML tags on
an .aspx page. For tags that do not have a specific control mapping, the HtmlGeneric control is used
to represent them as a server-side control object when they have a runat="server" attribute.
Table 1-1. HTML Tags and Their HTML Server Control Counterparts
HTML Tag HTML Server Control
HtmlForm
HtmlInputText
HtmlInputText
HtmlInputRadioButton
16 CHAPTER 1 ?–  SERVER CONTROL BASICS
An HTML Controls Demonstration
To examine the System.Web.UI.HtmlControls namespace, we examine the execution of a demonstration
showing the controls in action. This demonstration dynamically constructs an HTML
table from X and Y coordinates that are present on the web form using the code shown in
Listings 1-5 and 1-6. We discuss this code after the listings.
Listing 1-5. The HTMLControls Web Form .aspx File
<%@ Page Language="C#"
MasterPageFile="~/MasterPage/ControlsBook2MasterPage.Master"
AutoEventWireup="true" CodeBehind="HtmlControls.aspx.cs"
Inherits="ControlsBook2Web.Ch01.HtmlControls"
Title="HTML Controls Demo" %>

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


Pages:
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
zaklady osuszacz powitrza Biuro rachunkowe Warszawa dekoder rusztowania krause