SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 340 | Next

Robin Pars, Laurence Moroney, and John Grieb

"Foundations of ASP.NET AJAX"

NET Image control,
imgAnalyticGraph, is created to act as a placeholder for the Bollinger band chart generated
by the PHBB.aspx page. This Image control must be accompanied by an additional line of
C# code in the GetAnalytics method in the code behind:
imgAnalyticGraph.ImageUrl = "PHBB.aspx?ticker=" + strTicker + "&days=100";
And with that, the Bollinger band is integrated into the Analytics pane just like the
price history chart. Lastly, let??™s looks at the most important and yet simple part of this
sample, AJAXifying the formso that all updates occur without doing any page refresh.
Applying ASP.NET AJAX
By now, you know that the easiest and fastest way to add AJAX functionality to an existing
ASP.NET application is to use the ASP.NET AJAX server controls, mainly the UpdatePanel.
For the purposes of this chapter, we assume that the project itself has already been
ASP.NET AJAX-enabled, and the appropriate changes have been made to the Web.Config
file as shown in the earlier chapters.
As you know all too well, if you have not created an AJAX-enabled ASP.NET web
site/project, the very first step before the addition of any ASP.


Pages:
328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352