Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void DisableControls(ListControl control, Boolean val)
- {
- if (val)
- {
- control.ClearSelection();
- control.Attributes.Remove("checked");
- control.Attributes.Add("disabled", "disabled");
- }
- else
- {
- control.Attributes.Remove("disabled");
- }
- }
- private void DisableControls(ListControl control, Boolean val)
- {
- if (val)
- {
- control.ClearSelection();
- foreach (ListItem item in control.Items)
- {
- item.Enabled = false;
- }
- }
- else
- {
- foreach (ListItem item in control.Items)
- {
- item.Enabled = true;
- }
- }
- }
- private void DisableControls(ListControl control, Boolean val)
- {
- if (val)
- {
- control.ClearSelection();
- control.Enabled = false;
- }
- else
- {
- control.Enabled = true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement