Tony_Henrich
Tony_Henrich

Reputation: 44145

How to put '<' and '>' inside a linkbutton's text property (asp.net)?

How to put '<' and '>' inside a linkbutton's text property (asp.net)? I tried <asp:LinkButton runat="server" ID="lbEdit" Text="&lt;edit settings&gt;"></asp:LinkButton> but then the link doesn't show up.

Upvotes: 4

Views: 351

Answers (1)

pdr
pdr

Reputation: 6440

Yeah, that will render with the exact text <edit settings> which the browser will consider another tag.

Try Text="&amp;lt;edit settings&amp;gt;"

Upvotes: 5

Related Questions