views:

700

answers:

1

get value on popup page in text box to parent window textbox using asp.net 2.0

A: 

Your question is not clear, but from what I deduce, you want to get the value of a textbox from the parent window in your child window.

You can do something like this -

var win = window.open('<Window URL>');
win.contentWindow.SetValueOfTextBox(parentWindowTextBoxValue);

Here win is the instance of the window you have opened.

You'll have to define SetValueOfTextBox function in the new window which you have opened. This function will accept a string and set that value to a textbox on that page. You just have to call that function from the parent window passing the value of the textbox to it.

Kirtan