|
-
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
PlaceHolder1.Controls.Add(myimgButton)
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
End Sub
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. . .
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks