I want to add a span with code behind to a itemTemple (inside a gridview)
<itemTemplate>
// Here i want a span build up with code behind
<asp:HyperLink ID="hyperlinkID" runat="server">#</asp:HyperLink>
</itemTemplate>
Is this even posible or do i need to declare a placeholder in the aspx.
A span which you want to access on serverside is a
Labelthat is rendered as span later.If you want to hide it under certain conditions i would use the
RowDataBound-event.Visible=falseon server-side means that it's not rendered at all on client-side.