Public Class WebForm1 > Inherits System.Web.UI.Page > Protected WithEvents Button1 As System.Web.UI.WebControls.Button > Protected WithEvents Label1 As System.Web.UI.WebControls.Label > >#Region " Web Form Designer Generated Code " > > 'This call is required by the Web Form Designer. > <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent() > > End Sub > > Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init > 'CODEGEN: This method call is required by the Web Form Designer > 'Do not modify it using the code editor. > InitializeComponent() > End Sub > >#End Region > > Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load > 'Put user code to initialize the page here > Me.Label1.Text = "Page" > End Sub > > Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click > Me.Label1.Text = "Button" > End Sub >End Class>
Me.Button1.Text = "Test"With the breakpoint set on this line, I pressed F5. IE opened and displayed the page with the caption on button1 changed to "Test" - yet the program did not stop at the breakpoint. This is a weird one.