ASPForums.Net RSS Feed additions to the content that appears on ASPForums.Net(c) 2019 All rights reserved.[Solved] ASP.Net Error: The modifier public is not valid for this item<p>Hi <a class="username" rel="micah"> micah</a>,</p> <p>Try below code.</p> <p><span style="text-decoration: underline;"><strong>Code</strong></span></p> <pre class="brush: csharp">protected void Clear(object sender, EventArgs e) { CleartextBoxes(this.form1); } public void CleartextBoxes(Control parent) { foreach (Control c in parent.Controls) { if ((c.GetType() == typeof(TextBox))) { ((TextBox)(c)).Text = &#34;&#34;; } if (c.HasControls()) { CleartextBoxes(c); } } }</pre> <p>&nbsp;</p>, 25 Sep 2019 08:07:14 GMT