E
egholm
Hi
The code below is adding a dynamicly created LinkButton to a
placeholder control.
When I click the LinkButton it should call attLink_Click(), but it
dosen't happen.
What is wrong? Please help.
By the way, I'm using VS.NET 2005
//Code creating the LinkButton
LinkButton attLink = new LinkButton();
attLink.ID = "dummy";
attLink.Text = "blablabla";
attLink.Click += new EventHandler(attLink_Click);
phUploadedFiles.Controls.Add(attLink);
//Eventhandler
void attLink_Click(object sender, EventArgs e)
{
throw new Exception("The method or operation is not
implemented.");
}
The code below is adding a dynamicly created LinkButton to a
placeholder control.
When I click the LinkButton it should call attLink_Click(), but it
dosen't happen.
What is wrong? Please help.
By the way, I'm using VS.NET 2005
//Code creating the LinkButton
LinkButton attLink = new LinkButton();
attLink.ID = "dummy";
attLink.Text = "blablabla";
attLink.Click += new EventHandler(attLink_Click);
phUploadedFiles.Controls.Add(attLink);
//Eventhandler
void attLink_Click(object sender, EventArgs e)
{
throw new Exception("The method or operation is not
implemented.");
}