R
Richard
(ASP.NET C#)
why doesn't this work
protected ArrayList editButtonArr;
public void showArticle()
{
editButtonArr = new ArrayList();
for (int i = 0; i < comments.Length; i++)
{
Button editButton = new Button();
editButton.Text = "Testing";
editButton.Click += new EventHandler(editButton_Click);
editButtonArr.Add(editButton);
}
}
private void editButton_Click(object sender, EventArgs e)
{
Response.Redirect("http://www.google.dk");
}
it is beeing run in the prerender of the Page
regards Richard
why doesn't this work
protected ArrayList editButtonArr;
public void showArticle()
{
editButtonArr = new ArrayList();
for (int i = 0; i < comments.Length; i++)
{
Button editButton = new Button();
editButton.Text = "Testing";
editButton.Click += new EventHandler(editButton_Click);
editButtonArr.Add(editButton);
}
}
private void editButton_Click(object sender, EventArgs e)
{
Response.Redirect("http://www.google.dk");
}
it is beeing run in the prerender of the Page
regards Richard