Messages
Topics
Lists
Groups
Marketplace
Jobs
Daisy Rees
5 years ago
I am getting this error: Unable to cast object of type ‘System.Web.UI.LiteralControl’ to type ‘System.Web.Controls.TextBox
foreach(Control x in this.Controls) { Button btn = (Button)x; btn.Enabled = true; }
#c-sharp #asp.net