R
Russ
I just can't seem to do it. In my composite control I add a button:
Button Db = new Button ();
Db.ID = "DedButton" + i;
Db.Style.Add ("Position", "Absolute");
Db.Style.Add ("Left", "300px");
Db.Style.Add ("Top", "290px");
Db.Text = "Edit Deductions";
Db.Click += new System.EventHandler(DedButton_Click);
pv.Controls.Add (Db);
(pv is a pageview control)
Then in the same class I have:
private void DedButton_Click (object sender, System.EventArgs e)
{
}
I put a breakpoint at the entry point of DedButton_Click, but it never
gets there. Clicking the button does cause post back, but the event
never fires. I have had the same problem with the OnChange event for
a Drop Down List. I gave up on the DDL and am now trying to make a
simple button work.
HALP!
Thanks, Russ
Button Db = new Button ();
Db.ID = "DedButton" + i;
Db.Style.Add ("Position", "Absolute");
Db.Style.Add ("Left", "300px");
Db.Style.Add ("Top", "290px");
Db.Text = "Edit Deductions";
Db.Click += new System.EventHandler(DedButton_Click);
pv.Controls.Add (Db);
(pv is a pageview control)
Then in the same class I have:
private void DedButton_Click (object sender, System.EventArgs e)
{
}
I put a breakpoint at the entry point of DedButton_Click, but it never
gets there. Clicking the button does cause post back, but the event
never fires. I have had the same problem with the OnChange event for
a Drop Down List. I gave up on the DDL and am now trying to make a
simple button work.
HALP!
Thanks, Russ