S
Surjit Madiwalar
Hi,
I have added dynamically 5 buttons to the panel.
How do i know which button clicked....suppose i click on add3 button how do
i trap that event....
The code is below:
// numShift is dynamic(range 3-12)
int numShift = 5;
for (int i=1; i<=numShift; i++)
{
Button buttonAdd = new Button();
buttonAdd.Text = "Add";
buttonAdd.ID = "ShiftAddButton" + i.ToString();
Panel1.Controls.Add(buttonAdd);
Panel1.Controls.Add(new LiteralControl("<br>"));
}
Your help is much appreciated.
Rgds,
Surjit
I have added dynamically 5 buttons to the panel.
How do i know which button clicked....suppose i click on add3 button how do
i trap that event....
The code is below:
// numShift is dynamic(range 3-12)
int numShift = 5;
for (int i=1; i<=numShift; i++)
{
Button buttonAdd = new Button();
buttonAdd.Text = "Add";
buttonAdd.ID = "ShiftAddButton" + i.ToString();
Panel1.Controls.Add(buttonAdd);
Panel1.Controls.Add(new LiteralControl("<br>"));
}
Your help is much appreciated.
Rgds,
Surjit