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...
RahamanTPosted Aug 9, 2004, 12:52 PM
sacrespPosted Feb 19, 2004, 3:58 AM
netwizard_01Posted Feb 16, 2004, 12:42 AM
sacrespPosted Feb 15, 2004, 2:22 PM
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. }