Add html table dynamically on button click

wolf

New Member
I am adding data to the database on a button click event. I am trying to display the added data to the database, in the form of html table on the same page in the same button click event. But I am unable to view the table on the page. I tried debugging but everything looks to be fine.Here is the small piece of code.\[code\]void btnAdd_Click(object sender, EventArgs e) { Objects.InsertNewRequestIntoMaterialTransactions(...); LoadMaterialTakenTable(); } void LoadMaterialTakenTable() { Table tblMaterialList = new Table(); placeMaterialRequest.Controls.Add(tblMaterialList); }\[/code\]Am I missing anything?
 
Back
Top