467,169 Members | 990 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,169 developers. It's quick & easy.

Send value from child window to parent

Joe
I need to popup a window, allow the user to select an image, update the
parent window with this new value (requires a refresh) and then close the
child window.
Are there any examples of something similar to this?

Thanks,
Joe
Apr 16 '07 #1
  • viewed: 2844
Share:
3 Replies
"Joe" <jb*******@noemail.noemailwrote in message
news:uf**************@TK2MSFTNGP04.phx.gbl...
>I need to popup a window, allow the user to select an image, update the
parent window with this new value (requires a refresh) and then close the
child window.

Are there any examples of something similar to this?
If you use JavaScript to open a new window via the window.open method, you
can refer to the "parent" window via the window.opener object...

http://www.google.co.uk/search?sourc...ow%2eopener%22
Apr 16 '07 #2
Hi Joe,

Basically, you will need to use JavaScript to open the new window, from the
new window, you can use 'window.opener' to reference the parent window and
make the parent page reload or navigate to another location.

In your case, I understand the popup window will let the user select an
image and the image will be needed to show on the parent with a reloading,
depend on your implementation detail, you could either reload the parent
page with a QueryString parameter (to the new image name) or first save the
new image name in backend (from the client page with a postback of this
page) and reload the parent page.

You can find an example to how to reload the parent page from the popup
window:

#Refresh a GridView control on the parent page, from a pop up window - The
Code Project - ASP.NET
http://www.codeproject.com/aspnet/Gr...FromParent.asp
Please feel free to reply here to let me know if there's anything unclear.
Thanks.
Sincerely,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your reply
promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Apr 17 '07 #3
Hi Joe,

Have you seen my last reply? Please feel free to let me know if there's
anything unclear.
Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Apr 19 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Steve Bywaters | last post: by
4 posts views Thread by Richard Lewis Haggard | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.