02 April 2004

Memo: Transforming Dataset to Presentation

In a recent ASP.NET project, I need to retrieve a large blocks of relational data from backend present them in a 2D table. Issue here is data relation are multi-dimensional, involving more than 5 tables. And UI got some fancy buttons kinda thing as well. Data grid is not a viable solution.

Current implementation deploys XmlReader to build the table on the fly. Don't really like it, due to the fact logic code and presentation markup are mixed to produce a massive codebehind.

I am planning to shift this into a nice xml doc and transform it using xslt.

These stuff seemed quite useful:
The initiativesBest Practices for Representing XML in the .NET Framework

CreateNavigator Method

And XSLT Transformations with the XslTransform Class