On page 324 of ch-9, I created the file Email.aspx based on MyBasePage, inheriting my Master Page.
Step # 3 states that I have the option to set the handler by using the two drop-down lists at the top of the documents window.
For me, however, the only option I saw in the first drop down was:
Demos_Email with a sub-item of (Demos_Email Events)
When I select this item, the 2nd drop-down gives me many options, "Load" included. When I select "Load", I get the following code:
Code:
Private Sub Demos_Email_Load(sender As Object, e As EventArgs) Handles Me.Load
But when I double-click in the design view I get:
Code:
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
This equals the example in the book.
Are these 2 above, the same? Because when I go inside the Page_Load sub, I see the options I mentioned previously in the drop-down list.
BUT...if I create the 1st Private Sub Demos-Email_Load above, and THEN double click in the design view - it generates the 2nd code below the Private Sub code.
Why can't I use the drop-downs (as the book mentions) to create the Protected Page_Load sub?