title: ASP.NET & Javascript: Setting values from one window to another
body: <p>I have a child browser window (aspx) opened from the parent application. The child window has some controls, and a textbox. When the user is finished, s/he clicks a button and the following code takes the value from the child window and populates the parent, like so:</p>
  
  <pre><code>window.opener.document.form1.InputContainer$LetterInput$txtReasons.value = txtVal;
  </code></pre>
  
  <p>This works great for the textbox I have on the parent page. But now, I need to populate a listbox and am not having much luck. I've tried these two methods but to no avail:</p>
  
  <pre><code>o.text = txtVal;
  o.value = "1";
  window.opener.document.form1.InputContainer$LetterInput$lstReasons.add(o);
  
  window.opener.document.form1.InputContainer$LetterInput$lstReasons.add("Text", "Value");
  </code></pre>
  
  <p>I get "htmlfile: No such interface supported" with both.</p>
  
  <p>Anybody have any ideas?</p>
  
  <p>Thanks,</p>
  
  <p>Jason</p>