Hi
I have below data which converts table into datatable. I want if there is no record "No Data available in table" should not be displayed.
StringBuilder htmlTable = new StringBuilder();
htmlTable.Append("");
htmlTable.Append("Sr. Document File Name Action ");
htmlTable.Append("");
htmlTable.Append("");
htmlTable.Append("
");
PlaceHolderTable0.Controls.Add(new Literal { Text = htmlTable.ToString() });
Thanks
Vijay PandeyPosted Oct 5, 2024, 6:09 AM
Jignesh KumarPosted Sep 11, 2024, 9:11 AM
Ramco RamcoPosted Sep 10, 2024, 4:26 PM
Hi Jignesh
I am getting error - Cannot reinitialize table
Thanks
Jignesh KumarPosted Sep 10, 2024, 12:33 PM
You can use this,
Ramco RamcoPosted Sep 10, 2024, 12:07 PM
Hi Jignesh
Datatable by default does not display this message. Am i right
Thanks
Jignesh KumarPosted Sep 10, 2024, 12:02 PM
Hello Ramco,
I cannot see a message like "No Data available in table" in your code.
Could you please share the full code if you are facing that issue? As per the above code there is no message like that