Reputation: 3
I want to add a label to .NET ASPX page. When I do <asp:label />
nothing appears? I want it to say "Hello World"
Upvotes: 0
Views: 64
Reputation: 1129
You need to set the label to runat server, and then set its text.
<asp:label runat="server" Text="Hello World" />
Upvotes: 1
Reputation: 17194
I should be:
<asp:Label runat="server" Text="Hello World" />
Upvotes: 0