How to add dynamically created table at perticular location
<p>In my web form,from cs file I am creating dynamic table.After clicking on that button ,table get created.But it go to above content page.</p>

<pre><code>protected void button_click()
{         
    string s1 = "Computer"; 
    StringBuilder sb = new StringBuilder(); 
    sb.Append(@"&lt;script language='javascript'&gt;"); 
    sb.Append("document.write('&lt;table&gt;&lt;tbody&gt;')";); 
   sb.Append("document.write('&lt;tr&gt;&lt;td&gt;Information&lt;/td&gt;&lt;/tr&gt;')";); 
    if(s1 == "Computer" ) 
   {
     sb.Append("&lt;tr&gt;&lt;td&gt;"+s1+"&lt;/td&gt;&lt;/tr&gt;"); 
   }
   sb.Append("document.write('&lt;/tbody&gt;&lt;/table&gt;')";);
   sb.Append(@"&lt;/script&gt;"); 



 if (!Page.ClientScript.IsClientScriptBlockRegistered(Page.GetType(), "HeyPopup"))

    ClientScript.RegisterClientScriptBlock(Page.GetType(), "HeyPopup", sb.ToString());  
    }
</code></pre>

<p>I have created table like this.</p>
