... September 22 , 20 05 5 :26 AM
Darie-Watson_4681C01.fm Page 10 Tuesday, August 9, 20 05 3:51 AM
Darie-Watson_4681Front.fm Page xiv Thursday, September 22 , 20 05 5 :26 AM
821 3592a117456a3 408 54d18cee57 603
... Thursday, September 22 , 20 05 5 :26 AM
Darie-Watson_4681Front.fm Page iv Thursday, September 22 , 20 05 5 :26 AM
20
CHAPTER 2
■ LAYING OUT THE FOUNDATIONS
Figure 2- 4. Web server processing client requests
After ... September 20 , 20 05 4:51 AM
xvii
Introduction
Welcome to Beginning ASP. NET2.0 E-Commerce in C# 20 05 : From Novice to Professional! The
explosive growth of retail over the Internet is encouraging more...
... at the same time.
Darie-Watson_4681C 02 . fm Page 26 Tuesday, September 20 , 20 05 4:51 AM
xvii
Introduction
Welcome to Beginning ASP. NET2.0 E-Commerce in C# 20 05 : From Novice to Professional! The ... using IIS.
Darie-Watson_4681C 02 . fm Page 27 Tuesday, September 20 , 20 05 4:51 AM
821 3592a117456a3 408 54d18cee57 603
6
CHAPTER 1
■ STARTING AN E-COMMERCE SITE
Phase I: Getting a Site Up
Chapters 2 ... AM
821 3592a117456a3 408 54d18cee57 603
Darie-Watson_4681Front.fm Page iv Thursday, September 22 , 20 05 5 :26 AM
CHAPTER 2 ■ LAYING OUT THE FOUNDATIONS
17
quantity in the business tier and deciding...
... 1-4
12
Chapter 1
05 _57860x ch01.qxd 10/ 4 /05 9 :26 PM Page 12
xvi
Contents
Chapter 10: Communicating Between WebParts 319
Using Connectable Parts 319
Setting up the Page 3 20
Making Connections 3 20
Managing ... Controls
with ASP. NET2.0
Published by
Wiley Publishing, Inc.
104 75 Crosspoint Boulevard
Indianapolis, IN 4 625 6
www.wiley.com
Copyright â 20 06 by Wiley Publishing, Inc., Indianapolis, Indiana
Published ... 3 20
Managing Connections 323
Creating Connectable WebParts 324
Creating a Provider Web Part 324
Creating a Consumer Part 327
A Two-Way Street 328
Predefined Interfaces 3 30
Handling Incompatible Interfaces...
... textbox”>< /asp: TextBox>
</ZoneTemplate>
< /asp: WebPartZone>
30
06_57860x ch 02 . qxd 10/ 4 /05 9 :24 PM Page 30
Staying in Sync
As your custom control becomes more complex, debugging and testing ... user controls.
27
Creating Customizable Pages
06 _57860x ch 02 . qxd 10/ 4 /05 9 :24 PM Page 27
Chapter 2
In this chapter, you use the standard server-side controls that come with ASP. NET2.0 on a customizable
page ... Tools
07 _57860x pt 02 . qxd 10/ 4 /05 9:19 PM Page 53
Creating
Customizable Pages
The capability to add customization to your Web application using WebParts is completely new in
ASP. NET2.0. Before plunging...
... constituent control).
124
Chapter 4
09 _57860x ch04.qxd 10/ 4 /05 9: 30 PM Page 124
Dim vrbs As WebControls.WebParts.WebPartVerbCollection
vrbs = New WebControls.WebParts.WebPartVerbCollection(vrbsLanguage)
Return ... False
In C#
System .Web. UI.WebControls.WebParts.WebPartVerb vrbEnglish =
new System .Web. UI.WebControls.WebParts.WebPartVerb(“English”, this.SetEnglish)
System .Web. UI.WebControls.WebParts.WebPartVerb ... displayed in the User
Control when the page is regenerated.
125
Building User Controls
09 _57860x ch04.qxd 10/ 4 /05 9: 30 PM Page 125
The key line in this C# code is the class definition, which inherits...
... this Visual Basic 20 05 code does:
1 60
Chapter 6
11_57860x ch06.qxd 10/ 4 /05 9:17 PM Page 1 60
10_ 57860x ch05.qxd 10/ 4 /05 9:18 PM Page 158
you do assign a strong name to your Web site, you must ... if
1 92
Chapter 7
12_ 57860x ch07.qxd 10/ 4 /05 9 :25 PM Page 1 92
One warning: Making these settings in a custom control project will override the settings recommended
in Chapter 3 that caused the ASPX ... deprecated in .NET 2.0 (in C#, using this
attribute generates a design-time warning) and is supported in .NET 2.0 primarily
for backward compatibility with earlier versions of C# and Visual Basic 20 05 ....
... etc.
}
24 4
Chapter 8
14_57860x ch08.qxd 10/ 4 /05 9 :29 PM Page 24 4
Figure 7-11
Figure 7- 12
201
Developer Tools
12_ 57860x ch07.qxd 10/ 4 /05 9 :25 PM Page 20 1
In most classes used in the ASP. NET environment, ... attribute-based mechanism.
22 7
Adding Business Functionality
14_57860x ch08.qxd 10/ 4 /05 9 :29 PM Page 22 7
Following the first strategy gives you a code structure like this in Visual Basic 20 05 :
Private bolDataBound ... the developers using your control.
In Visual Basic 20 05 , because ReadOnly is a keyword, it must be enclosed in brackets.
23 0
Chapter 8
14_57860x ch08.qxd 10/ 4 /05 9 :29 PM Page 23 0
...
... Visual Studio 20 05 ensures
that the property is set to the name of an existing control with a validation property. However, even
27 2
Chapter 9
15_57860x ch09.qxd 10/ 4 /05 9 :22 PM Page 27 2
To support ... “code.js”);
The resulting page would contain this tag:
<script src=”/WebPartsHostVB/WebResource.axd?d=WylyhFDzry8iRJrQJB9A0hZkD_GD3HHX8pJs
r0kUntA1&t=6 324 821 09 97 722 6 20 8” type=”text/javascript”></script>
You ... asynchronous
26 6
Chapter 9
15_57860x ch09.qxd 10/ 4 /05 9 :22 PM Page 26 6
Now you can add your validation routine using the client-side code routines discussed earlier in this
chapter. The routine you...
... System .Web. UI.WebControls.WebParts.WebPart,
IBookInfo, IWebPartField
{
IBookInfo ibk;
IWebPartField ifld;
[WebControls.WebParts.WebParts.ConnectionConsumer(“IBookInfo Consumer”,
“BookInfo”)] ... SetFieldInfo(IBookInfo bk)
343
Communicating Between Web Parts
16_57860x ch 10. qxd 10/ 4 /05 9:37 PM Page 343
If Me.WebPartManager1.CanConnectWebParts(prov, prcp (0) , cons, cncp (0) , _
trs) Then
Me.WebPartManager1.ConnectWebParts(prov, ... following Visual Basic 20 05 example
shows two connection points in the same consumer supporting the IBookInfo and IWebPartField inter-
faces. In both connection point routines, a reference to the interfaces...