You can do it this way:
In the page where you want to handle the click event of the linkbutton, add this code to the Page_Load:
protected void Page_Load(object sender, EventArgs e)
{
LinkButton lb = (LinkButton)this.Master.FindControl("linkbuttonname");
lb.Click += new EventHandler(lb_Click);
}
Now we've hooked up the event, and we have to handle the event like this:
void lb_Click(object sender, EventArgs e)
{
throw new Exception("The method or operation is not implemented.");
}
That should do it...
--
MartinHN
↑ Grab this Headline Animator