How to create a dynamic table from java script?I am fetching a record from database and storing into variable and adding that value to table cell. Here I put some text not actual value.
In cs file's button click event I doing like this
StringBuilder sb = new StringBuilder();
sb.Append(@"<script language='javascript'>");
sb.Append("<table><tbody><tr><td>Information</td></tr></tbody></table>");
sb.Append(@"</script>");
if (!Page.ClientScript.IsClientScriptBlockRegistered(Page.GetType(), "HeyPopup"))
ClientScript.RegisterClientScriptBlock(Page.GetType(), "HeyPopup", sb.ToString());
But I am unable to see Information.