The
VB.NET version of the EventBubbling_withState.aspx code as explained on Page 143 of the book does not seem to work. The error message that is thrown is as follows...
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 35: Dim viewCount As Integer
Line 36:
Line 37: If ViewState("viewCount").ToString() = "" Then
Line 38: viewCount = 1
Line 39: Else
Pretty strange! I have just copy pasted from the code downloaded.
Could anyone please help?