Results 1 to 2 of 2

Thread: [2005] showModalDialog

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2005
    Location
    Alaska
    Posts
    435

    [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?

  2. #2
    Smitten by reality Harsh Gupta's Avatar
    Join Date
    Feb 2005
    Posts
    2,938

    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 !!!
    Show Appreciation. Rate Posts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width