Re: dynamic buttons
Posted: 7/24/2006 8:54:49 AMBy: Comfortably Anonymous
Times Read: 1,571
Likes: 0 Dislikes: 0
Topic: Programming: .NET Framework
I'm also having trouble with this - I get the impression you not only have to recreate the buttons, but you have to place them as well. This is a real pain if the event handler is is intended to change the layout of the page, e.g. not include a button that was there before the postback. I'd be happy to recreate all buttons from pre-postback so they're tied to their handlers, but I don't want to have to place them.
In a simple case, I could just make the button invisible, but that's not an option if it's to be placed inside another control whose existence is conditional. e.g. initially a button sits in a cell of a row of a table. Which is inside a panel, etc... The button text is "Remove all this stuff!". After postback & event handling the table is not to be drawn. How should such a button be handled?
Any ideas?
John S
In a simple case, I could just make the button invisible, but that's not an option if it's to be placed inside another control whose existence is conditional. e.g. initially a button sits in a cell of a row of a table. Which is inside a panel, etc... The button text is "Remove all this stuff!". After postback & event handling the table is not to be drawn. How should such a button be handled?
Any ideas?
John S
Rating: (You must be logged in to vote)