X
xiko tripa
I believe VS.NET is removing my code. I have a button control on a
web form.
The button control raises an event, and my web form handles the event.
The code that I add to the web form to handle the user control's event
is shown below.
Sometimes VS.NET has nuked my code, clipping the line code where the
handler event is. When it hasn't, the code works just like I want it
to.
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
//the line below disappear occasionally so I have to retype it.
this.SearchButton.Click =
System.EventHandler(this.SearchButton_Click);
}
Does anyone knows some fix for this missbehavior?
VS.net 2003
framework 1.1
Windows XP Pro
Thanks in advance.
web form.
The button control raises an event, and my web form handles the event.
The code that I add to the web form to handle the user control's event
is shown below.
Sometimes VS.NET has nuked my code, clipping the line code where the
handler event is. When it hasn't, the code works just like I want it
to.
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
//the line below disappear occasionally so I have to retype it.
this.SearchButton.Click =
System.EventHandler(this.SearchButton_Click);
}
Does anyone knows some fix for this missbehavior?
VS.net 2003
framework 1.1
Windows XP Pro
Thanks in advance.