What’s the syntax for the aspx pages if you want to break down really long lines of code into a more readable format.
Example:
<asp:Label runat="server" ID="lblTest" CommandName="Sort" CommandArgument="Efficiency" ForeColor="White" Text="<img src='images/bluecell.png' /> = 66 - 100 % <br><img src='images/greencell.png' /> = 33 - 66 % <br> <img src='images/ambercell.png' /> = 0 - 33%"> </asp:Label>
into something like:
<asp:Label runat="server" ID="lblTest" CommandName="Sort" CommandArgument="Efficiency"
ForeColor="White" Text="<img src='images/bluecell.png' /> = 66 - 100 % <br><img
src='images/greencell.png' /> = 33 - 66 % <br> <img src='images/ambercell.png' /> = 0 - 33%">
</asp:Label>
Or is it not possible to break up the value of one individual attribute?
Had a quick play with this, and I was surprised to see that just spreading the Text attribute across multiple lines did produce valid markup (as far as I can see).
It does kind of screw with the colour formatting in VS, but when it’s displayed in the browser it produces:
So just try putting it on different lines, ignore VS trying to colour code something it doesn’t understand and see what you get.
(by the way, use
<br />instead of<br>)