O'Reilly logo

Building Web Applications with Microsoft® Office SharePoint® Designer 2007 Step by Step by John Jansen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using a Math Expression with a Parameter for Conditional Formatting

In addition to enabling you to display parameters, use conditional formatting, and modify ASP.NET controls, the power of XSLT also provides another layer of data functionality: When you have numerical values in your data, you can use XPath expressions to perform mathematical functions on those numbers. For example, you can add a summary row to a data view and create a Totals column or calculate the average price of your products.

In this exercise, you will insert a new column into a data view and then create a mathematical expression in XPath that will be used for conditional formatting.

Note

USE the products.stp template and the newParameters.aspx ASPX file. These practice files ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required