<p>I have an asp.net web page written in C#.<br>
Using some javascript I popup another .aspx page which has a few controls that are filled in and from which I create a small snippet of text.<br>
When the user clicks OK on that dialog box I want to insert that piece of text into a textbox on the page that initial "popped up" the dialog/popup page.  </p>

<p>I'm guessing that this will involve javascript which is not a strong point of mine.</p>

<p>How do I do this?</p>

[{'answer_id': 55222, 'author': 'Dale Marshall', 'author_id': 1491425, 'author_profile': 'https://Stackoverflow.com/users/1491425', 'pm_score': 2, 'selected': False, 'text': '<p>What you could do is create an ajax modal pop-up instead of a new window.  The semantic and aesthetic value is greater not to mention the data-passing is much easier.</p>\n\n<p><a href="http://www.asp.net/ajax/ajaxcontroltoolkit/samples/modalpopup/modalpopup.aspx" rel="nofollow noreferrer">http://www.asp.net/ajax/ajaxcontroltoolkit/samples/modalpopup/modalpopup.aspx</a></p>\n'}, {'answer_id': 55242, 'author': 'GateKiller', 'author_id': 383, 'author_profile': 'https://Stackoverflow.com/users/383', 'pm_score': 4, 'selected': True, 'text': '<p>You will have to do something like:</p>\n\n<pre><code>parent.opener.document.getElemenyById(\'ParentTextBox\').value = "New Text";\n</code></pre>\n'}]
['https://Stackoverflow.com/questions/55203', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1463/']