How to make Dynamic textbox multiline with 10 rows
<p>I have created dynamic textbox in code behind,but i want to make that textbox multiline with 10 rows,Could u plz tell how to make its TextMode as MultiLine.
I have tried following code:</p>

<p>TextBox _textDesc = new TextBox();</p>

<pre><code>                _textDesc.ID = "textDesc_" + i.ToString();
                _textDesc.MaxLength = 200;
               _textDesc.TextMode = "MultiLine";
                _textDesc.Rows = 10;
                _textDesc.Columns = 20;
                tdDesctxt.Controls.Add(_textDesc);
</code></pre>

<p>But it is showing error at:  _textDesc.TextMode = "MultiLine";</p>
