Author: Doominic | Posted on: 6/2/2009 8:18:28 AM | Views : 616

Below is my code to generate buttons. The problem is that when I first time clik on button "But1" (this one witch generete dynamic buttons) the button doesn't appear. Next time when I click another 5 times , 5 new buttons appear. After this, when I for example clik one of this new buttons I have one more button (Button6). Can Somebody help me, and corrects my code.
  public partial class Default3 : System.Web.UI.Page { protected void Page_Init(object sender, EventArgs e) { if (Session["flag"] != null) { CreateMyControl(Session["Counter"]); } } protected void Page_Load(object sender, EventArgs e) ...

Go to the complete details ...