I am trying to write a generic method that will also handle a click event, and I want to allow the user to pass his own method as the click event. Something like this:
public static void BuildPaging(
Control pagingControl, short currentPage, short totalPages, ???)
{
for (int i = 0; i < totalPages; i++)
{
LinkButton pageLink = new LinkButton();
...
pageLink.Click += ???;
pagingControl.Controls.Add(paheLink);
}
}
I know it is possible but I don't remember how to do it...