M
Mart?n Llanos via .NET 247
I've this problem, in my aspx i put a ListBox, when i add lines to this ListBox and and click de button "Guardar", a java script function is called. In that java script I have this code:
var lbPozosToAdd = document.all.lbPozosToAdd;
for(var i = 0; i < ListBox.length; i++){
ListBox.options.selected = true;
}
This work OK, but in the code behind when I try to validate the ListBox Ex: if(ListBox.Items.Count != 0), the count is always 0, why?
Thanks for your help, sorry my English, I'm from Argentina
var lbPozosToAdd = document.all.lbPozosToAdd;
for(var i = 0; i < ListBox.length; i++){
ListBox.options.selected = true;
}
This work OK, but in the code behind when I try to validate the ListBox Ex: if(ListBox.Items.Count != 0), the count is always 0, why?
Thanks for your help, sorry my English, I'm from Argentina