Build Your Own ASP.NET 3.5 WEB SITE - Error on 1st Project Page 18

I have several sitepoint books already. Got this and finally opened this past weekend.

Problem: I can’t even get past the first project because the code excerpt from page 18 is giving a compilation error. Not a good way to start out trying to learn. I need to get past this hurdle, because I tried to Google this problem.

I tried to post my code but this is my first post, so I can’t. I have saved the page as a TXT file and attached it to this post.

Can someone get me past at least the very first simple project so I might try to learn something.


[COLOR=Black]Handles Me.Load either needs to be on the same line at the end of the page load declaration like this…
…ByVal e As System.EventArgs) Handles Me.Load


[/B]if you want it on a seperate line you need to use an underscore at the end like this…

…ByVal e As System.EventArgs) _
Handles Me.Load

Hope this helps.


Thanks, for the prompt reply Mike. I will try this solution tonight when I get home.

Thanks, Mike. That was it. Did I hear someone say noob???

Onward and Upward.

No worries :slight_smile:

We all have to start at the beginning. Good luck on your journey.