Posted on: 8/19/2013 10:12:18 PM | Views : 319

Hello, 
I'm trying to add multiple rows of textbox controls and datepickers triggered by an 'Add' button. The 'Add' button adds the required controls once, but when I click on 'Add' a second time it refreshes the control to blank and an additional row with the controls isn't added. 
Here's my code: (.cs)
protected void AddNewOpenedCompetitor_Click(object sender, EventArgs e) { if (Page.IsPostBack) { UpdatePanel DrpUpdate = new UpdatePanel(); DrpUpdate.UpdateMode = UpdatePanelUpdateMode.Conditional; DrpUpdate.RenderMode = UpdatePanelRenderMode.Inline; DropDownList DrLst = new DropDownList(); DrLst.SelectedIndexChanged += new EventHandler(AddOtherCompetitor); DrLst.AutoPostBack = true; TextBox NewCompTextBx = new TextBox(); NewCompTextBx.ID = "NewCompetitorStringName"; N ...

Go to the complete details ...