I've tried every different option for using showModalDialog, but I just cant seem to get it to work the way I need it to.

I've got 2 pages (Parent is NewUser.aspx and child is FindUser.aspx). On the parent I have a textbox (txtUserId) and a button that opens the dialog.

On the child I have a textbox (txtSearch), grid and a button to close the dialog.

I want to tell the parent's txtUserId this: GridView1.Selectedrow.Cells(3).Text

and update the txtUserID to show that.

Any ideas?