If the event is raised on that
control, then the trigger fires, and the UpdatePanel control is rendered. You specify a
PostBackTrigger with the
tag and an AsyncPostBackTrigger with the
tag. Here??™s a quick sample based on the last example we used:
CHAPTER 5 ?– INTRODUCING SERVER CONTROLS IN ASP.NET AJAX 101
Here the AsyncPostBackTrigger specifies that the source for the trigger is the button
called btnAdd, and the event on which to trigger is the Click event. Therefore, when the
button is clicked, the AsyncPostBackTrigger fires, and the partial update occurs. Notice
that the declaration of the btnAdd button was actually outside the UpdatePanel block.
Pages:
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175