M
^MisterJingo^
Hi all,
I think i'm missing something here.
I have a page with a number of textboxes in it and I simply want to
enable or disable them on a button click. I first search through page:
foreach (Control ctrl in Page.Controls)
and then to check their type I:
Response.Write(ctrl.GetType().ToString() + "<br/>");
Every control is given as type "System.Web.UI.LiteralControl", and so i
cannot cast to WebControl and access the Enabled property. None of the
controls are in panels, so the above should see them?
What am I doing wrong here? Any help would be appreciated;
I think i'm missing something here.
I have a page with a number of textboxes in it and I simply want to
enable or disable them on a button click. I first search through page:
foreach (Control ctrl in Page.Controls)
and then to check their type I:
Response.Write(ctrl.GetType().ToString() + "<br/>");
Every control is given as type "System.Web.UI.LiteralControl", and so i
cannot cast to WebControl and access the Enabled property. None of the
controls are in panels, so the above should see them?
What am I doing wrong here? Any help would be appreciated;