Jiveabillion
-
7/30/2012 4:11:17 PM
RE:Simple example to display results of SQL query
You do need to create a transformation for your scenario to work. In v6, it's pretty simple to do. Just edit your Basic DataList web part instance configuration and choose the "New" button next to Item Transformation. Since you are not using a specific document type, you might want to just add your transformation to the "root" document type, so choose that document type from the dropdown list.
Next, name your template and choose your template type. If you want to make your template like you may have done before in .Net, use the ASCX type. You can then use <%# Eval("ColumnName") %> expressions to output your data.
I, however, prefer to use the Text/XML type and use K# Macros like {%ColumnName%} because the syntax is much simpler.
After you've created your transformation, you should be able to see your data.
|