I have a dropdown,textbox and button on button click i m writing below code
System.Web.UI.WebControls.
TBL.ID =
TBL.Width =
TBL.BorderWidth =
btnAddEntity.Text =
TBL.Rows.Add(TBLROW);
TBLROW.Cells.Add(TBLCELL);
TBLCELL.Width =
TBLCELL.Text = ddlCategory.SelectedItem.Text;
TBLCELL =
TBLCELL.Text = txtWeight.Text;
TBLCELL.Controls.Add(btnAddEntity);
PH.Controls.Add(TBL);
first time on button there is no problem but if i select another text from dropdown and writing another text in textbox and click on button then previous row get overwrited with new one.
wat i want is whenever i m clicking on button that row get added to next row and so on...