G
Guest
Been reading Dino Esposito's Article "A DetailsView Control for ASP.NET 1.x"
found in the msdn Library. His example was created using VB.NET. I am trying
to convert the example (DetailsView control) to C#.
The Issue is I converted this line (in VB):
AddHandler _insertButton.Click, AddressOf OnApplyInsertMode
to C#.NET with this:
this._insertButton.Click +=new EventHandler(this.OnApplyInsertMode);
the problem is the OnApplyInsertMode(object sender, EventArgs e) is not
subscribing to the click event fired by _insertButton.....Its not actually
calling OnApplyInsertMethod().
how do I go about this? FYI, the method containing AddHandler
_insertButton.Click, AddressOf OnApplyInsertMode and the
OnApplyInsertMode(object sender, EventArgs e) is in the same class.
found in the msdn Library. His example was created using VB.NET. I am trying
to convert the example (DetailsView control) to C#.
The Issue is I converted this line (in VB):
AddHandler _insertButton.Click, AddressOf OnApplyInsertMode
to C#.NET with this:
this._insertButton.Click +=new EventHandler(this.OnApplyInsertMode);
the problem is the OnApplyInsertMode(object sender, EventArgs e) is not
subscribing to the click event fired by _insertButton.....Its not actually
calling OnApplyInsertMethod().
how do I go about this? FYI, the method containing AddHandler
_insertButton.Click, AddressOf OnApplyInsertMode and the
OnApplyInsertMode(object sender, EventArgs e) is in the same class.