|
-
Mar 13th, 2008, 11:28 AM
#1
Thread Starter
Hyperactive Member
[2005] showModalDialog
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?
-
Mar 13th, 2008, 01:59 PM
#2
Re: [2005] showModalDialog
You would need to use JS for such scenario.
While opening a child form, pass the ClientID of the TextBox of the parent form, and using JS on child form, pass the required info to it accessing it like window.parent.opener.document.getElementById(textbox_ClientID).value !!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|