Search
Re: CRINETA Meeting - 9/3/2007 - .NET 2.0 and Ajax – using Script services to retrieve data async
Started by crineta at 08-09-2007 10:33 AM. Topic has 1 replies.

Print Search « Previous Thread Next Thread »
Meeting Details
Meeting Date/Time:Monday, September 10th at 5:30 PM
Location:Baymont Inn & Suites (Map)
Featured Topic:.NET 2.0 and Ajax – Using Script services to retrieve data asynchronously - Presented By Bryan Sampica
Featured Demo:Red Gate SQL Tools - Presented By gregsohl
Additional Information:Ajax is making a major impact on the way we think of page lifecycle, so why not use it as efficiently as possible. Forget about update panels and refresh only the changing content using script services and an Ajax proxy.

The agenda is as follows:

Overview
· Technology
· Problem
· Possible Solutions
· Chosen Method (why)
Environment
· Setup
· Methodology
· Prototype
Code Walkthrough
· Webservice Creation
· JavaScript Creation
· Page Binding
· Extending the Service to business practice
· Completing the Page methods
· Rendering final output

Bryan is a Cedar Rapids native since the age of 12. He got his start in System Architecture for Parsons Technology, and followed it through many iterations before leaving right before the Mattel merger. From Parsons he contracted with Rockwell for a short time before opening a 3rd party support company on 1st avenue called AMK Computers. Selling out of a successful company to his business partner left him looking again and he landed as a System Architect at Microsoft supporting the eastern seaboard. Wanting to be close to family , he returned to Iowa after 3 years and started what was ultimately his second successful company doing internet based data warehousing. When that company was bought out he landed in Cedar Falls, Iowa and currently manages a Web Technologies based department for ASI Computer Systems, which produces a full business lifecycle product for the Ad Specialty industry.
Meeting Minutes:

Greg opened the meeting. There were 2 new attendees that introduced themselves. Greg introduced our speaker for the night, and thanked our sponsors. Our meeting sponsor was Red Gate Software, who also donated a copy of SQL Compare as a door prize. Greg did a brief demo of the product.

 

The presentation proceeded as follows:

 

Discussed history of interactive web history. Options for providing user feedback. Discussed why AJAX provides a good technology for user feedback and is a good programming environment.

 

Will show how to create a web site with AJAX. It will be a mortgage calculator. (Available in downloads with slide deck)

 

Hello World Demo

 

Using Visual Studio 2005 TS, Bryan created an AJAX-enabled web site.

Created a single page that calls a webservice GetData.asmx.

 

Coded a script in the page that calls the JavaScript proxy for the webservice. (doWork()). The call to the web service takes three delegates

  • OnComplete
  • OnTimeout
  • OnError

Coded up empty functions for each of these.

 

Set up a <div id="xxx"> to provide a place to put the returned data. Added code to OnComplete to put the resulting HTML in the <div>.

 

Added a button to trigger the call. Ran the example, pressed the button and saw the results returned from the web service.

 

 

Real Mortgage Calculation Application

 

Created webservice with methods

  • CalculatePayment
  • CalculateAmortization
  • Defined class PaymentDetail that gets the detail of individual payments

 

Ran the service methods interactively in IE to show that it works

 

Showed a method that formats each month of amortization data as an HTML table row. The Amort method will return a full HTML table, instead of raw data (XML). This isn't ideal, since the data can't be reformatted on the client.

 

Added a stylesheet into the page.

 

Bryan discussed something that was brought up during the break, that is that UpdatePanels are not inherently bad, as some have said. The method he is showing is an alternative to them and is a more abstracted form of using AJAX. Update panels are simplier to use and require less coding, but are also less flexible.

 

Continued with putting the Javascript in the page to call the web methods on the service and to process the results.

 

Showed the web page and how the payment calculation is returned and displayed. Went on to show how the amortization method is called to show the pmt amortization schedule.

 

Obviously the example app lacks polish. Bryan listed a number of things that could be done to clean it up and make it more professional. However, even without these things, the example provides a good, real-world example of using AJAX for creating more responsive web applications that give users better, more immediate feedback.

 

Bryan reminded that the user interface is intended to communicate, not decorate. So don't overuse AJAX just because you can.

 

After the presentation, members turned in their eval forms. We had a good supply of door prizes tonight. We gave away several tee-shirt / USB Key sets, a copy of Component One Suite, Office Professional and the copy of SQL Compare.

 

Our next meeting will include a presentation by member Eric Johnson on Microsoft Office Sharepoint Services. Eric elaborated a bit on what he will cover.

  08-09-2007, 10:33 AM
crineta is not online. Last active: 5/30/2008 12:30:42 PM crineta

Top 10 Posts
Joined on 04-05-2005
Posts 60
CRINETA Meeting - 9/3/2007 - .NET 2.0 and Ajax – using Script services to retrieve data async
Reply Quote
This is the official thread for the 9/3/2007 CRINETA Meeting

Please post any questions related to this meeting here.
   Report 
  09-10-2007, 8:52 PM
Freakyuno is not online. Last active: 9/11/2007 2:53:25 AM Freakyuno

Top 75 Posts
Joined on 09-11-2007
Posts 1
Re: CRINETA Meeting - 9/3/2007 - .NET 2.0 and Ajax – using Script services to retrieve data async
Reply Quote
Greetings CRINETA -

I just wanted to take this opportunity to thank the group for the privilege of speech. I enjoyed the time, and look forward to the next meeting, or the next time you need a speaker!

Bryan Sampica
http://weblogs.asp.net/bryansampica


   Report 
Post
CRINETA » CRINETA Discuss... » CRINETA Topics ... » Re: CRINETA Meeting - 9/3/2007 - .NET 2.0 and Ajax – using Script services to retrieve data async

Copyright Cedar Rapids INETA, 2005 All rights reserved.

Powered by Community Server, by Telligent Systems