<%if (CanRemove) Response.Write("<b>"+ProductName+"</b>"); %>
This code strikes me as ugly. More specifically, any time I see a call to Response.Write inside an ascx or aspx file, I get suspicious that I'm doing something wrong. Perhaps this is due to previously working with XSLT and noticing that when done right, there is rarely a need for <xsl:text>
element in order to generate html. I feel like it interferes with my ability to read the code when my html code is hidden inside a <% %>
block.
Is this just something I need to get used to with Asp.Net or is there a better way to do it?