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.
我在表单设计中使用标签控件。但我想在页面加载时隐藏那个特定的标签控件。
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Label10.Visible = False End Sub
我应该怎么办?我是 vb.net 的新手。
尝试在 aspx 代码中而不是在加载事件中设置可见性属性,这可能会解决您的问题。
<asp:Label ID="lblValidation" runat="server" BackColor="Red" Text="Please fill in all of the date fields below to proceed" Visible="False"></asp:Label>
希望这可以帮助!