Reputation: 44145
How to put '<' and '>' inside a linkbutton's text property (asp.net)? I tried <asp:LinkButton runat="server" ID="lbEdit" Text="<edit settings>"></asp:LinkButton>
but then the link doesn't show up.
Upvotes: 4
Views: 351
Reputation: 6440
Yeah, that will render with the exact text <edit settings>
which the browser will consider another tag.
Try Text="&lt;edit settings&gt;"
Upvotes: 5