Author: cwellman | Posted on: 10/2/2008 5:15:27 PM | Views : 503

Ok, here's the situation.  I have an ASP.NET application in which I am generated controls dynamically.  In addition to generating controls dynamically I need to generate JavaScript to enable and disable controls.  I've successfully been able to do this for the most part.  For instance, I have a RadioButtonList that when certain items are selected/deselected then a TextBox is enabled/disables (the value of the Textbox is also cleared out).  So that's great.  Now I also have a second RadioButtonList that when certain items are selected/deselected then the first RadioButtonList is enabled/disabled (again the selected value is cleared out).  Ok, so here's the catch.  When the second RadioButtonList causes the first RadioButtonList to become disabled and cleared out, I want the Textbox to also be cleared out as well.  I expected the event from the first RadioButtonList to disable the TextBox, but it did not.
...

Go to the complete details ...