. .
Charts & Analytics
. . .
You can see the created tabs in design view in Figure 10-4.
CHAPTER 10 ?– BUILDING A SAMPLE APPLICATION USING ASP.NET AJAX 230
Figure 10-4. Three TabPanel controls in a TabContainer control
That??™s basically all there is to the outer shell of the UI. A bit later, we will add an
UpdateProgress control to notify the user when postbacks are occurring. As mentioned
earlier, we wanted to only execute code for each pane when it becomes active. In other
words, we do not want all panes rendered at all times. Therefore, in the ActiveTabChanged
event handler, the specific rendering code for each pane must be stated as shown here:
protected void TabContainer1_ActiveTabChanged(object sender, EventArgs e)
{
Update(TabContainer1.ActiveTabIndex);
}
CHAPTER 10 ?– BUILDING A SAMPLE APPLICATION USING ASP.NET AJAX 231
To specify rendering code for each pane, let??™s define a method named Update, which
takes in the index of the active tab as its only parameter.
Pages:
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324