Dynamic Buttons disappearing
I've created an apsx page that takes data from a XML file and loads a number of image buttons on screen. The buttons would be positioned at different places depending on co-ordinates retrieved from within the XML file. The buttons get created depending on which option the user selects which is permanently displayed on screen. . .
however, even though I've added a handler for the clicking of the image button (shown)
myimgButton.Visible = True
AddHandler myimgButton.Click, AddressOf myimgbuttonclickhandler
and the code is in place to pick this up (shown below)
Public Sub myimgbuttonclickhandler(ByVal sender As System.Object, ByVal e As System.Web.UI.ImageClickEventArgs)
...handling code in here
Every time I click on one of the dynamically created buttons, the page reloads and all my magically created buttons disappear! It dosnt even go anywhere near the handler I created.
Any ideas? Are there options I should be setting for the form?
Cheers. . .
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center