The
default is ???always.???
Using the ContentTemplate Tag
The
tag defines the HTML or ASP.NET that will get updated by the
UpdatePanel control. You can use the designer to generate this HTML. If, for example, you
drag and drop a Calendar control onto the UpdatePanel control??™s content template area
(see Figure 5-8), it will be defined within the tag area.
CHAPTER 5 ?– INTRODUCING SERVER CONTROLS IN ASP.NET AJAX 99
Figure 5-8. Adding controls to the UpdatePanel control??™s content template
You can see the markup that is produced by adding the calendar as follows:
CHAPTER 5 ?– INTRODUCING SERVER CONTROLS IN ASP.NET AJAX 100
Using Triggers
The other child tag for the UpdatePanel control is . This allows you to define
triggers for the update. As seen in the previous table, the UpdatePanel control has a property
calledUpdateMode.
Pages:
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173