Hide your asp.net tag attribute from HTML output
22/01/2010 Leave a comment
You have an attribute and you want to hide this attribute in your HTML output . It useful when you dont want extra junk in your response then use “meta:”
Example:
<asp:Label id=”myLabel” runat=”server” text=”hello” myattribute=”mello” />
Output is
<span myattribute=”mello”>hello </span>
with using meta:
<asp:Label id=”myLabel” runat=”server” text=”hello” meta:myattribute=”mello” />
output is
<span>hello</span>
May the code be with you…