architecture problem with all web forms
Opening ThePhile web forms within VS.NET, making changes to the html and selecting Design mode will regenerate the automatic codebehind to reflect the changes. What happens (ad infinitum), and which stuffs everything up is:
'original code
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
AddHandler Me.Load, AddressOf Page_Load
End Sub
Private Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
etc.
turns into:
'altered code, which fails to initialise the forms
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
End Sub
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
etc.
The only way I can see to get ThePhile to work again is to manually reset the change. This is very annoying particularly because it doesn't always happen, and often you don't find out until after recompiling and running the app, and you have to do it all over again, wasting considerable time.
Does this situation have anything to do with AutoEventWireup="false" which is set for all of ThePhile web forms?
|