Hi all,

By mistake I posted my query in VB.Net Forum. So here posting it again

Hi all,

I am adding items to my ListBox in parent window from a child window through javascript. Here's the code:


Code:
var id=document.getElementById('<%=lstGroups.ClientID%>');
var y=document.createElement('option');
y.text=arrGroup[i];
y.value=arrGroup[i];
id.options.add(y);
But on the button click on the parent window, the ListBox's Count property gives me a value of zero.

I faild to understand why this is happening!!!

Pls guide.