ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. 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>https://www.aspforums.net:443/Threads/102647/Solved-ASPNet-Error-The-modifier-public-is-not-valid-for-this-item/https://www.aspforums.net:443/Threads/102647/Solved-ASPNet-Error-The-modifier-public-is-not-valid-for-this-item/Wed, 25 Sep 2019 08:07:14 GMT