Using AJAX 4 and JQuery (UI) + ADO.NET Data Service to realize a pure JavaScript Page

by Marc Andre Zhou June 17, 2009 09:11

The new AJAX 4 Version offers a new client side template engine. With this new engine it is possible to define data templates within HTML. The template engine offers three different ways to bind data. A good whitepaper and overview about all the new functionalities is available here.

I implemented a small example to demonstrate different technologies and the cooperation between the different tools. My example is using:

  • Entity Framework / Entity Data Model
  • ADO.NET Data Service
  • AJAX 4 Preview
  • JQuery + JQuery UI

I used the Northwind database and the employee data for my example.

To see how the application is working, click here

The below pictures explain the different parts and technologies.

GUI overview:

Application Architecture overview:

The example application contains a list of employee data. I used the client side data template from the AJAX 4 Preview Version to render the data table:

<table class="sys-template" border="0" width="100%" id="dataview" sys:attach="dv" dv:sys-key="master" dv:selecteditemclass="itemSelected" dv:oncommand="dataview_oncommand(sender,args)">
<tr class="sys-item-template" sys:command="Select">
  <td sys:command="Select">{{ FirstName }}</td>
  <td>{{ LastName }}</td>
  <td>{{ Address }}</td>
  <td>{{ City }}</td>
  <td>{{ Region }}</td>
</tr>
</table>

The complete example application is using pure JavaScript, there is no need to have either a *.aspx or codebehind *.aspx.cs file.

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

.NET | .NET Features | AJAX | JavaScript | Visual Studio Orcas

ADO.NET Entity Framework und Visual Studio 2008 (ORCAS) BETA 2

by Marc Andre Zhou August 23, 2007 05:41
Leider existiert für diese Kombination noch kein passendes ADO.NET Entity Framework Update. Wenn man also das neue Visual Studio Beta 2 installiert, kann das ADO.NET Entity Framework nicht verwendet werden. Es soll aber eine neue Version des ADO.NET Entity Framework bald verfügbar sein: http://blogs.msdn.com/adonet/default.aspx
 
Marc Andre Zhou - China Signature