WalterHeisenberg
Technical User
- Mar 28, 2008
- 159
Hello, first thanks in advance as I am a total noob to c#. I have a wizard which includes T.O.S. and once a client has completed this we mark it as such in the db. Next time they log-in they are supposed to be able to view this information but not edit it.
Right now, I have the following:
In Code Behind page:
In class behind:
Right now nothing is happening. The aspx page also uses a master page and if I do a response.write of (c) it comes back with the master page. Any help would be greatly appreciated!
Right now, I have the following:
In Code Behind page:
Code:
wizardHelper.disableAll(this.Page);
Code:
public void disableAll(Control ctrl)
{
foreach (Control c in ctrl.Controls)
{
if (c is CheckBox)
{
((CheckBox)(c)).Checked = true;
((CheckBox)(c)).Enabled = false;
}
}
}
Right now nothing is happening. The aspx page also uses a master page and if I do a response.write of (c) it comes back with the master page. Any help would be greatly appreciated!