aalkan
Posts: 9
|
| Posted: 01/18/2009, 1:47 AM |
|
Hi,
How can I get the selected value of master listbox in "before execute select" event of slave listbox. For now, I stored it in "before show" event of master listbox by using a session value, but it is not safe.
Best regards.
Alpay Alkan
|
 |
 |
jjrjr1
Posts: 942
|
| Posted: 01/18/2009, 6:31 AM |
|
Hi
Have you tried in your before execute select
$Container->slavelistboxname->SetValue($Container->masterlistboxname->GetValue());
Or am I missing something.
Let me know.
_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com |
 |
 |
aalkan
Posts: 9
|
| Posted: 01/18/2009, 9:41 PM |
|
No, it does not work; because it is just selected and the page not refreshed yet after this selection; because of ajax I think...It returns null.
|
 |
 |
jjrjr1
Posts: 942
|
| Posted: 01/21/2009, 5:41 AM |
|
Ok Maybe this
Then try in client side events.
OnChange for the master listbox get the value and put it into the slave.
something like this possibly
var temp=document.getElementById("MasterListBox").selected();
document.getElementById("SlaveListBox").selected()=temp;
Maybe this will do what you want.
_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com |
 |
 |