• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 218
  • Last Modified:

Checkbox when checked, disables textbox.

I'm looking for the easiest way to do this:

I have a text box and a check box.  

When some one checks the check box, I want the text box to immediately disable and have its text = "";

Alternatively, when the box is unchecked, I want the text box enabled again.

How can I do this without having to jump through a bunch of hoops?

Essentially, I want the checkbox changed event to runat="client" but that does not work.

1 Solution
hpdvs2Author Commented:
Figured out the answer.  Add AutoPostBack="True" to the tag, so it checks it right away.

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now