T
Tom Perkin
Hello all,
I have an ASP.NET page written in VB.NET that dynamically adds rows to
a table from data returned by a database query. Some rows in this table
contain buttons whose events I handle.
In the event handler I rebuild the table adding event handlers again
using addHandler. When the handler has been wired up from Page_load it
fires correctly. When the handler has been wired from within another
event handler it fails to fire. Am I missing something here? Is this
behaviour by design?
warm regards, and thanks in advance,
-tom
The structure is similar to this:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs)
buildPage()
end Sub
private sub buildpage()
' create buttons and add to page
addHandler myButton.Click, addressOf buttonClickHandler
end sub
private sub buttonClickHandler(sender as system.object, e as
system.eventargs)
' Do stuff
buildPage()
end sub
I have an ASP.NET page written in VB.NET that dynamically adds rows to
a table from data returned by a database query. Some rows in this table
contain buttons whose events I handle.
In the event handler I rebuild the table adding event handlers again
using addHandler. When the handler has been wired up from Page_load it
fires correctly. When the handler has been wired from within another
event handler it fails to fire. Am I missing something here? Is this
behaviour by design?
warm regards, and thanks in advance,
-tom
The structure is similar to this:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs)
buildPage()
end Sub
private sub buildpage()
' create buttons and add to page
addHandler myButton.Click, addressOf buttonClickHandler
end sub
private sub buttonClickHandler(sender as system.object, e as
system.eventargs)
' Do stuff
buildPage()
end sub