@motil: I already check that sample and I would say lots more similar to it. Most of it uses inputbox or dropdownlist and pass the value to parent. Thats work fine indeed that is what im trying to achieve. But in my case I have a gridview in child window and the passing of value to parent will wired up under the button located in the first column of child window gridview.