title: Dynamically fill a <td> with a control asp.net
body: <p>I got this table:</p>
  
  <pre><code>*FormMaster is x wide*
  
          &lt;table&gt;
              &lt;tr&gt;
                  &lt;td&gt;
                      &lt;asp:Label runat="server" ID="lb_seq_header" Text="Sequence Header: "/&gt;
  
                  &lt;/td&gt;
                  &lt;td&gt;
                      &lt;asp:TextBox runat="server" ID="tb_seq_header"/&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;
                      &lt;asp:Label runat="server" ID="lb_asm_instr" Text="Sequence Instructions: "/&gt;
  
                  &lt;/td&gt;
                  &lt;td&gt;
                      &lt;asp:TextBox runat="server" ID="tb_asm_instr" TextMode="MultiLine" Rows="15" style="resize:none"/&gt; 
                  &lt;/td&gt;
              &lt;/tr&gt;    
          &lt;/table&gt;   
  </code></pre>
  
  <p>How do I stretch the textbox in a td to fill the rest of the body of the formmaster that is x wide?</p>
  
  <p>I've tried adding a div in each td with a textbox, applied 'style' to each textbox with "width:100%", adding a style="width:y%" and a style="width:x%" (x+y=100) for each td pair but nothing happens.</p>