大哥们,路过就看一眼(特简单。不够再加分)
自定义空间中循环创建linkbutton,希望在不同的点击事件后掉用不同的过程,但是我却无法确定哪个被触发了,大哥们教教我
protected override void CreateChildControls()
{
while(i<5)
{
i++;
this.Controls.Add (new LiteralControl("<table border='1' width='400'><tr><td>"));
LinkButton frist=new LinkButton();
frist.Text="del"+i.ToString();
frist.ID=i.ToString();
Page.GetPostBackClientEvent(this,"del"+i.ToString());
this.Controls.Add(frist);
this.Controls.Add (new LiteralControl("</td>"));
this.Controls.Add (new LiteralControl("<td>"));
this.Controls.Add (new LiteralControl("erdsfasdsad</td>"));
this.Controls.Add (new LiteralControl("</tr>"));
this.Controls.Add (new LiteralControl("</table>"));
}
}