Hello
I am getting 3 errors (same errors for all 3 lines) in my Visual Studio 2017 Web Forms project:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
pnlFormFields.Visible = False
pnlThankYouMessage.Visible = True
LblDate.Text = ReturnDate()
End Sub
pnlFormFields, pnlThankYouMessage, and LblDate, are not declared.
In my aspx file, I have:
<body> <asp:Label ID = "LblDate" runat="server" CssClass="dateStyle" Text="Label"></asp:Label> <asp:Panel ID="pnlFormFields" runat="server"> <form id="form1" runat="server" method="post">
and
<asp:Panel ID="pnlThankYouMessage" runat="server" CssClass="panel" Visible="False">
Thank you. Your message has been sent.
</asp:Panel>
What am I coding wrongly, please?
Thank you.