I am currently reading back through Beginning ASP.NET using VB
.NET to clarify some bits and have come across a bit of a problem in the third chapter which I remember was a problem the first time I read the book.
At the end of chapter 3, which covers using server controls like check boxes and dropdown lists ect, there is a "try it" section that combines a number of the controls. However, this code throws up an error.
The form part of the code for the holidaypage.aspx file starts with <form action="holidayresponsepage.aspx" method="post">. This is so the results are passed to another page, the "holidayresponsepage.aspx". The first asp line is "Name:<asp:textbox id="FullName" runat="server" />"
All the other asp stuff is in this format. The form is eventually closed with </form>
When you run this in the browser I get the message "Control 'FullName' of type 'TextBox' must be placed inside a form tag with runat=server"
I have downloaded the code for this book and the code for this section is the same as mine and has the same problem.
If I remove this part of the code I get the same message but relates to the next <asp:.... /> control.
Has anyone come across this and if so what do I need to do to fix it?
Any help is much appreciated.