• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

IceCactus
#1 Posted : Tuesday, November 25, 2008 2:37:04 PM(UTC)
IceCactus

Rank: Member

Joined: 2/6/2008(UTC)
Posts: 55

When a product has been assigned a type, and there is more then one property, and at least one of those properties has not been marked for "Display on Site?" , the ProductTypeDisplay.ascx does not correctly add the "ALT" class to the <li> tag.


Fix is below. Anything i added has been marked bold and italicized.





Code:

[color=#0000ff][color=#0000ff][2]Dim[/color][/2][/color][color=#0000ff][color=#0000ff][2]As[/color][/2][/color][color=#0000ff][color=#0000ff][2]Integer[/color][/2][/color]</I></B>[color=#0000ff][color=#0000ff][2]For[/color][/2][/color][color=#0000ff][color=#0000ff][2]As[/color][/2][/color][color=#0000ff][color=#0000ff][2]Integer[/color][/2][/color][color=#0000ff][color=#0000ff][2]To[/color][/2][/color][color=#0000ff][color=#0000ff][2]If[/color][/2][/color][color=#0000ff][color=#0000ff][2]Then</P>[/color][/2][/color][color=#0000ff][color=#0000ff][2]Dim[/color][/2][/color][color=#0000ff][color=#0000ff][2]As[/color][/2][/color][color=#0000ff][color=#0000ff][2]String[/color][/2][/color][color=#008000][color=#008000][2]'If text property is empty, do not display </P>[/color][/2][/color][color=#0000ff][color=#0000ff][2]If[/color][/2][/color][color=#0000ff][color=#0000ff][2]Not[/color][/2][/color][color=#0000ff][color=#0000ff][2]Then</P>[/color][/2][/color][color=#0000ff][color=#0000ff][2]If[/color][/2][/color][color=#0000ff][color=#0000ff][2]String[/color][/2][/color][color=#0000ff][color=#0000ff][2]Then</P>[/color][/2][/color][color=#0000ff][color=#0000ff][2]Continue[/color][/2][/color][color=#0000ff][color=#0000ff][2]For</P>[/color][/2][/color][color=#0000ff][color=#0000ff][2]End[/color][/2][/color][color=#0000ff][color=#0000ff][2]If</P>[/color][/2][/color][color=#0000ff][color=#0000ff][2]End[/color][/2][/color][color=#0000ff][color=#0000ff][2]If[/color][/2][/color][color=#0000ff][color=#0000ff][2]If[/color][/2][/color][color=#0000ff][color=#0000ff][2]Not[/color][/2][/color][color=#0000ff][color=#0000ff][2]Then</P>[/color][/2][/color][color=#0000ff][color=#0000ff][2]True</P>[/color][/2][/color][color=#a31515][color=#a31515][2]"&lt;ul class=""typedisplay""&gt;"[/color][/2][/color][color=#0000ff][color=#0000ff][2]End[/color][/2][/color][color=#0000ff][color=#0000ff][2]If</P>[/color][/2][/color][color=#0000ff][color=#0000ff][2][2]
[/color][color=#008000][b][i]'New fix[/i][/b]
[/color][/2][/color][color=#0000ff][color=#0000ff][2]If[/color][/2][/color][color=#0000ff][color=#0000ff][2]Mod[/color][/2][/color][color=#0000ff][color=#0000ff][2]Then</P>[/color][/2][/color]</I></B>[color=#a31515][color=#a31515][2][b][i]"&lt;li&gt;"[/i][/b][/color][/2][/color][color=#0000ff][color=#0000ff][2][b][i]Else[/i][/b]</P>[/color][/2][/color][color=#a31515][color=#a31515][2][b][i]"&lt;li class=""alt""&gt;"[/i][/b][/color][/2][/color][color=#0000ff][color=#0000ff][2]End[/color][/2][/color][color=#0000ff][color=#0000ff][2]If</P>[/color][/2][/color]</I></B>[color=#008000][color=#008000][2][b][i]'Original Version[/i][/b]</P>[/color][/2][/color][color=#008000][color=#008000][2][b][i]'If i Mod 2 = 0 Then[/i][/b]</P>[/color][/2][/color][color=#008000][color=#008000][2][b][i]' sb.Append("&lt;li&gt;")[/i][/b]</P>[/color][/2][/color][color=#008000][color=#008000][2][b][i]'Else[/i][/b]</P>[/color][/2][/color][color=#008000][color=#008000][2][b][i]' sb.Append("&lt;li class=""alt""&gt;")[/i][/b]</P>[/color][/2][/color][color=#008000][color=#008000][2][b][i]'End If[/i][/b]</P>
[/color][/2][/color][/2]

[color=#0000ff][color=#0000ff][2]
[/color][/2][/color][color=#a31515][color=#a31515][2]"&lt;span class=""productpropertylabel""&gt;"[/color][/2][/color][color=#a31515][color=#a31515][2]"&lt;/span&gt;"[/color][/2][/color][color=#a31515][color=#a31515][2]"&lt;span class=""productpropertyvalue""&gt;"[/color][/2][/color][color=#a31515][color=#a31515][2]"&lt;/span&gt;"[/color][/2][/color][color=#a31515][color=#a31515][2]"&lt;/li&gt;"[/color][/2][/color][color=#0000ff][color=#0000ff][2]End[/color][/2][/color][color=#0000ff][color=#0000ff][2]If</P>[/color][/2][/color][color=#0000ff][color=#0000ff][2]Next</P>[/color][/2][/color][url=http://localhost/DyersOnline/BVModules/Controls/ProductTypeDisplay.ascx][/url]
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012