Well you can't pass it to that method, you need to assign the click event delegate to a method capable of handling it.
Like this:
public void DynamicClick(object sender, EventArgs e) {
// do something
}
Assign the click event like any event:
lnkdel.Click += new EventHandler(DynamicClick);
If you want to pass an argument, use CommandArgument, and you'll need a different delegate:
void DynamicCommand(Object sender, CommandEventArgs e)
{
Label1.Text = "You chose: " + e.CommandName + " Item " + e.CommandArgument;
}
And then:
lnkDel.Command += new CommandEventHandler(DynamicCommand)
lnkDel.CommandArgument = 1234;
BTW if you're on >= C#3, you can also use the coolness of anonymous methods:
lnkDel.Command += (s, e) => {
Label1.Text = "You chose: " + e.CommandName + " Item " + e.CommandArgument;
};