Gopi for that you have two ways :
from code behind :
var parentControl =(HiddenField) Parent.FindControl("ControlID");
parentControl.Value = txtBox.Text;
from javascript
function assingValue() {
parent_window.document.getElementById('hdnFieldValue').value = document.getElementById('txtbox').value;
}