format("{0}{1} {2} String Extension!",
asp.trimStart(),dotnet.trimEnd(),ajax.trim()));
In this script, all three available trimming methods were used to trim the extra space
from the start, end, and overall part of the designated string. These string variables were
then passed into the format method as arguments to be displayed (as shown in Figure 4-6)
just like it would be with the .NET Framework??™s String class. One last point to note here is
that the two formatting methods of the String extension are static methods, unlike the rest
of the methods, which are instance based.
Figure 4-6. Using methods of the String extension
CHAPTER 4 ?– ASP.NET AJAX CLIENT LIBRARIES 65
Method Name Description
?– Note The ASP.NET AJAX client library also includes a StringBuilder class in the Sys namespace that
is quite similar in terms of functionality to the StringBuilder class in the .NET Framework and is a great
candidate to be used for extensive string manipulation on the client.
The Sys Namespace
The Sys namespace is the root namespace for xyz and basically is the running engine
behind ASP.
Pages:
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125