Raise event from Dynamic LinkButton
Hi, i need to Raise event when the user click on any of the linkButtons which is populated dynamically within a placeHolder at runtime. The values of the linkButtons are stored in the CommandArgument Property.
Anyone has any idea how to code the event?
Thanx in Advance...

sacrespRank #1,944 · 754 reputationPosted Feb 15, 2004, 9:22 AM EST
for (int i=0;i<10;i++) { b = new Button(); b.Text = "New button"; // I'm sorry I don't remember the exact syntax, but I can't have a look right now b.OnClick += new EventHandler(MyClick); p.Controls.Add(b); } private void MyClick(object sender, EventArgs e) { // Examine the sender here and do what you need. }netwizard_013 reputationPosted Feb 15, 2004, 7:42 PM EST
sacrespRank #1,944 · 754 reputationPosted Feb 18, 2004, 10:58 PM EST
RahamanT6 reputationPosted Aug 9, 2004, 8:52 AM EDT