View Single Post
  #7 (permalink)  
Old August 26th, 2010, 10:42 AM
larrydb larrydb is offline
Registered User
Join Date: Aug 2010
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts

Excellent, thank you very much; this does indeed solve the problem. (Typo in your solution: The actual list item value must go outside, not inside, the <xsl:if>.)

Now for the daily double: What if the items aren't listed explicitly? That is, what if we were starting with something like

  <xsl:template name="Volume">
    <xsl:value-of select="@volume"/>
    <asp:DropDownList DataSourceID="MySource" DataTextField="volume" DataValueField="volume" ... />
Have you anything up your sleeve that handles this case?