O'Reilly logo

Learning ASP.NET 2.0 with AJAX by Dan Hurwitz, Jesse Liberty, Brian MacDonald

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Source Code Listing

The complete source code for the example in this chapter is shown in Example 2-3.

Example 3-4. OrderForm.aspx

<%@ Page Language="VB" AutoEventWireup="true" CodeFile="OrderForm.aspx.vb"
Inherits="_Default" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit"
TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <style type="text/css">@import url(StyleSheet.css);</style>
    <title>AdventureWorks CollapsiblePanelExtender</title> </head> <body> <form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server" /> <div> <h1>AdventureWorks Order Form</h1> <table> <tr> <td style="width: 100px"> Customer Name:</td> <td style="width: 100px"> <asp:TextBox ID="txtName" runat="server" CssClass="unwatermarked"> </asp:TextBox> <cc1:TextBoxWatermarkExtender runat="server" ID="CustomerNameWatermark" TargetControlID="txtName" WatermarkCssClass="watermarked" WatermarkText="Your name"> </cc1:TextBoxWatermarkExtender> </td> </tr> <tr> <td style="width: 100px"> Address:</td> <td style="width: 100px"> <asp:TextBox ID="txtAddress" runat="server" CssClass="unwatermarked"></asp:TextBox> <cc1:TextBoxWatermarkExtender runat="server" ID="CustomerAddressWatermark" TargetControlID="txtAddress" WatermarkCssClass="watermarked" WatermarkText="Home address"> </cc1:TextBoxWatermarkExtender> </td> </tr> <tr> <td style="width: 100px"> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required