Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想为 .NET ASPX 页面添加一个标签。当我什么都不做<asp:label />出现?我想让它说“Hello World”
<asp:label />
您需要将标签设置为 runat server,然后设置其文本。
<asp:label runat="server" Text="Hello World" />
我应该:
<asp:Label runat="server" Text="Hello World" />