variable output in ASP.NET
Posted on 2002-05-28
it seems that using <%=strSomeVar%>, including any form of <% %>, is now not recommended with ASP.NET... they suggest using <script> tags etc.
if that's the case, how would i handle a situation with an <object> html tag that needs to have it's attributes and inner tags modified at runtime?
is there a <asp:> like control for <object> tags?
or should i use the <asp:label> control and setup 2 different forms of the <object> tag then use a codebehind to choose which one to display?