Child Page Problem with Handles My.Base Load
Hello
In this book ASP.Net Website Programming Prob-Design-Solution all pages inherit PhilePage which contains the Page_Load.
My problem is that in code:
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
AddHandler Me.Load, AddressOf Page_Load
End Sub
Get reset to:
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
'
End Sub
VS.NET takes out AddHandler Me.Load, AddressOf Page_Load
And adds Handles MyBase.Load to the end of Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)
when I restart VS.Net or recompile.
I have to constantly delete and add these parts.
Can I get VS.NET to not automatically reset these codes????????
|