g_r_a_robinson
Regular
- Joined
- Jan 13, 2004
- Messages
- 71
Hi
I downloaded a 'Dual Select ListBox Control' from the microsoft asp.net component gallery. Great control!!
I have one problem.
Basically all I need to do is cause a button to become disabled when an item in the 'Dual Select ListBox Control' is selected. It works fine for my other controls including another js control. Heres what I do:
DualSelectListBox1.Attributes.Add( "onclick" , "document.getElementById('JobAdder1_Add_Notes_Normal_BTN').disabled=true;document.getElementById('JobAdder1_UpdateJob_BTN').disabled=false;");
I tried contacting the guy who created the control but I don't know if he's still involved with it.
I figured their must some other way to activate this control.
I went back to scratch and did the following:
put the following between <script> tags
function doJScript()
{
alert("My Own JavaScript Alert Box!")
}
then i tested it using another of my controls, in this case a timepicker:
TimePicker1.Attributes.Add( "onclick" , " doJScript();");
Worked fine.
But when I do the same with my duallist control
DualSelectListBox1.Attributes.Add( "onclick" , " doJScript();");
nothing happens..
This is so important for me and there must be some workaround, any suggestions would be appreciated!!
I downloaded a 'Dual Select ListBox Control' from the microsoft asp.net component gallery. Great control!!
I have one problem.
Basically all I need to do is cause a button to become disabled when an item in the 'Dual Select ListBox Control' is selected. It works fine for my other controls including another js control. Heres what I do:
DualSelectListBox1.Attributes.Add( "onclick" , "document.getElementById('JobAdder1_Add_Notes_Normal_BTN').disabled=true;document.getElementById('JobAdder1_UpdateJob_BTN').disabled=false;");
I tried contacting the guy who created the control but I don't know if he's still involved with it.
I figured their must some other way to activate this control.
I went back to scratch and did the following:
put the following between <script> tags
function doJScript()
{
alert("My Own JavaScript Alert Box!")
}
then i tested it using another of my controls, in this case a timepicker:
TimePicker1.Attributes.Add( "onclick" , " doJScript();");
Worked fine.
But when I do the same with my duallist control
DualSelectListBox1.Attributes.Add( "onclick" , " doJScript();");
nothing happens..
This is so important for me and there must be some workaround, any suggestions would be appreciated!!