title: Create html table as string based on textbox value
body: <p>I have textbox and a button on my aspx page.</p>
  
  <p>Now I want to create a html table as string on button click event. I have done this task. Please look at my below code:</p>
  
  <pre><code>        string stsrtest = "test";
          string nWidth="150px";          
          string strHtml = "&lt;table&gt;&lt;tr&gt;&lt;td width= '" + nWidth + "'&gt; Authorized By&lt;/td&gt;&lt;td&gt;Employee &lt;/td&gt;&lt;td&gt;Status&lt;/td&gt;&lt;td&gt;Date &lt;/td&gt;&lt;td&gt;Note&lt;/td&gt;&lt;td&gt;Signutare&lt;/td&gt;&lt;/tr&gt;";
          strHtml += "&lt;tr&gt;&lt;td&gt; " + stsrtest + "&lt;/td&gt;&lt;td&gt; " + stsrtest + "&lt;/td&gt;&lt;td&gt; " + stsrtest + "&lt;/td&gt;&lt;td&gt; " + stsrtest + "&lt;/td&gt;&lt;td&gt; " + stsrtest + "&lt;/td&gt;&lt;td&gt;test&lt;/td&gt;&lt;/tr&gt;";
          strHtml += "&lt;/table&gt;";
  </code></pre>
  
  <p>Now I want to create row and column dyanically based on textbox value.</p>
  
  <p>For Example if textbox value is 15 then I want create a table with 3 column and 5 Rows.
  and if textbox value is 6  then I want create a table with 3 column and 2 Rows.</p>
  
  <p>I have use above code to create a simple 2 rows and 5 column.</p>