Open a child page and return value to the parent page in ASP.NET

R

rsht

My special requirement is to do more in the child page, such as
redirect to another page to get value to update the original parent
page.

By using showModalDialog to open the child page (should call it a
dialogue box), the child page opens ANOTHER page when
response.redirect is executed - this is not what I want. So, I wish to
open a normal window for the child so that I can do more.

Anyone can give me some helps? Thanks
 
R

rsht

By using showModalDialog to open the child page (should call it a
dialogue box), the child page opens ANOTHER page when
response.redirect is executed
Sorry, "ANOTHER" page means ANOTHER WINDOW here.
 
R

rsht

By using showModalDialog to open the child page (should call it a
dialogue box), the child page opens ANOTHER page when
response.redirect is executed
Sorry, "ANOTHER" page means ANOTHER WINDOW here.
 
A

Alexey Smirnov

Sorry, "ANOTHER" page means ANOTHER WINDOW here.

Call js from the child page

window.opener.document.getElementById("HiddenField1").value = "xxx";

where HiddenField1 is a Client ID of Hidden Field.
 
A

Alexey Smirnov

Sorry, "ANOTHER" page means ANOTHER WINDOW here.

Call js from the child page

window.opener.document.getElementById("HiddenField1").value = "xxx";

where HiddenField1 is a Client ID of Hidden Field.
 
R

rsht

Call js from the child page

window.opener.document.getElementById("HiddenField1").value = "xxx";

where HiddenField1 is a Client ID of Hidden Field.

Many thanks Alexey!

I also worked out the same solution:
1. in the parent window/page, use window.open to bring out the child
page;
2. use the same method as yours to set the value in the parent page,
then window.close().
 
R

rsht

Call js from the child page

window.opener.document.getElementById("HiddenField1").value = "xxx";

where HiddenField1 is a Client ID of Hidden Field.

Many thanks Alexey!

I also worked out the same solution:
1. in the parent window/page, use window.open to bring out the child
page;
2. use the same method as yours to set the value in the parent page,
then window.close().
 
A

Alexey Smirnov

Many thanks Alexey!

I also worked out the same solution:
1. in the parent window/page, use window.open to bring out the child
page;
2. use the same method as yours to set the value in the parent page,
then window.close().

great!
 
A

Alexey Smirnov

Many thanks Alexey!

I also worked out the same solution:
1. in the parent window/page, use window.open to bring out the child
page;
2. use the same method as yours to set the value in the parent page,
then window.close().

great!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top