I attempted to try the example labled 'punctual.aspx' on page 36-37 of Beginning ASP.Net 1.1 with
VB.Net 2003.
When I typed the code the result failed to run.
Instead I recieved an error message indicating "time had not been declared".
I rectified this by adding a textbox to the form.
The code ran partially but now there was no 'time' displayed.
The phrase "In WebServerLand... displays but the textbox is empty.
I added a button object to see what would happen if I put the code from the page_load event in the button_click sub.
This rectified the problem but left me a little perplexed.
Shouldn't the page_load event run the moment the page is displayed.
And if it is running (which it does:The page displays without the time),shouldn't the time function be invoked since it is within the page_load event ? Why did it take a button_click event to fix the problem.
Also why wasn't it explicitly stated in the book to add a textbox or label to the form. The picture on the corresponding page does not show a textbox or label object when the program is run. Why is this ?