> Top of page: Listbox and button. Listbox contains a list of products.
> Button says "Load". Beneath both is a datagrid. In the datagrid, 25
[quoted text clipped - 44 lines]
> this.Controls.Add(tier);
> }
> 1) Have you attempted to do a step by step debugging to determine if in fact
> your btnTier_Command function is being invoked?
Yes, I have and yes, it is. If there is a way for the debugger to show me
what invoked the event, then I am not deft enough to find it.
> 2) Does this happen when you first load this page?
No. When I first load the page, no product information is loaded as per
design. The user has to choose which of many products he wants to see
account info for. If I choose a product that has an account with button then
the "phantom event" occurs the first time those accounts are loaded. If I
reload the same product, it does not occur again. If I switch to another
product then it happens the first time, but not subsequently. If I switch
again to the previous product, or to another, then the same behavior occurs.
> 3) That is the base class of AccountTier?
public class AccountTier : System.Web.UI.WebControls.WebControl
> Coding question for my own curiosity: Why are you dynamically creating the
> controls? (Buttons and AccountTier).
I needed buttons in the datagrid when I don't know how many rows there will
be or whether the data in that particular row warrants a button or a textbox.
It seemed the best way to accomplish the goal. How should I have done it?
As for the AccountTier, it just seemed like a good idea at the time. The
only time I want to see the AccountTier control is when I click on a button
on the data grid. I just figured, why spend the resources to create it when
I didnt need it.
> Steve
>
[quoted text clipped - 46 lines]
> > this.Controls.Add(tier);
> > }