how to use foreach loop to edit textboxes
<pre><code>foreach(textbox t in this.controls)
{
t.text=" ";
}
</code></pre>

<p>I want to clear all the textboxes in my page at one time.</p>

<p>I am getting an error:</p>

<blockquote>
  <p>Unable to cast object of type 'System.Web.UI.LiteralControl' to type
  'System.Web.UI.WebControls.TextBox'.</p>
</blockquote>
