I have an .aspx page I have created. It seems that sometimes when I add a new control (typing in the code, not dragging and dropping), especially the asp:label and asp:listbox controls, that my code-behind page does not seem to recognize them right away. For example:
I had a dropdownlist and decided to use a lisbox instead. So I removed the dropdown list and put an <asp:listbox id="lstChildrenAges" ... > in its place. My codebehind page recognized the dropdownlist fine, but right after I added the listbox control and went to my codebehind page to change the code to use the listbox instead, I get build errors in the task list that state "lstChildrenAges is not a member of ..."
I had the exact same problem with an asp:label also. Does anyone know what I need to do to resolve this? I went ahead and just coded against the label, and at some point in started recognizing it, but those little build errors are sure annoying...