Reputation: 48
I am just trying to display ASP.NET markup in my webpage.
I want to display
<asp:Button runat="server" ID="MyID" CssClass="btn" Text="SUBMIT" />
This code in html div tag. What should I do?
I tried using the <pre>
tag but it does not work:
<pre>
<asp:Button runat="server" ID="MyID" CssClass="btn" Text="SUBMIT" />
</pre>
Upvotes: 0
Views: 35
Reputation: 5068
Change <
and >
to html entity characters.
<
becomes <
.
>
becomes >
.
<asp:Button runat="server" ID="MyID" CssClass="btn" Text="SUBMIT" />
Upvotes: 1