473,320 Members | 1,857 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Postback to Parent Window

I have an ASP.NET application that has a gridview control on the main
window. When a user clicks on a button on the main window, a new
window is opened which allows them to search for a particular item
from a list. Once they have completed the search on this window they
click on the submit button.

I would like the application to close the search window, and change
the contents of the main window based upon this submission.

In other words, I want to pass control back to the previous or parent
window.

What is the best way of handling this?

Apr 5 '07 #1
2 1220
Please see here:
http://www.ben-rush.net/blog/PermaLi...e8aa963&dotnet.

If this does not give you enough information to get by, then let me know and
I can help further. This all really depends on what you're trying to
accomplish, however (how complicated the data is to pass back). Keep in mind
that you can easily communicate with the parent window through script.

--
~~~~~~~~~~~
Ben Rush
http://www.ben-rush.net/blog
<ch*********@ozemail.com.auwrote in message
news:11*********************@n76g2000hsh.googlegro ups.com...
>I have an ASP.NET application that has a gridview control on the main
window. When a user clicks on a button on the main window, a new
window is opened which allows them to search for a particular item
from a list. Once they have completed the search on this window they
click on the submit button.

I would like the application to close the search window, and change
the contents of the main window based upon this submission.

In other words, I want to pass control back to the previous or parent
window.

What is the best way of handling this?

Apr 5 '07 #2
Thanks Ben, works a treat. I will now implement this solution into my
application - thanks for the tip!

Chris

On Apr 5, 4:36 pm, "Ben Rush" <kwen...@yahoo.comwrote:
Please see here:http://www.ben-rush.net/blog/PermaLi...e1-eabe-4048-b....

If this does not give you enough information to get by, then let me know and
I can help further. This all really depends on what you're trying to
accomplish, however (how complicated the data is to pass back). Keep in mind
that you can easily communicate with the parent window through script.

--
~~~~~~~~~~~
Ben Rushhttp://www.ben-rush.net/blog

<chris.ro...@ozemail.com.auwrote in message

news:11*********************@n76g2000hsh.googlegro ups.com...
I have an ASP.NET application that has a gridview control on the main
window. When a user clicks on a button on the main window, a new
window is opened which allows them to search for a particular item
from a list. Once they have completed the search on this window they
click on the submit button.
I would like the application to close the search window, and change
the contents of the main window based upon this submission.
In other words, I want to pass control back to the previous or parent
window.
What is the best way of handling this?- Hide quoted text -

- Show quoted text -

Apr 5 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: MrFez | last post by:
I have an webform from which I open a child window to display a calendar. When a date is selected in the calendar window it attempts to set the value of a textbox in the main (parent) window by...
3
by: EMW | last post by:
Hi, Is it possible with VB.NET and Javascript to popup a window, after a buttonclick, in which the user writes some text in a textbox and then when that window is closed with a button, the text...
1
by: Earl Teigrob | last post by:
I did a ton of searching to try and find a simple solution to this issue and finally wrote my own, which I am sharing with everyone. In my searching, I did find a very complete and robust solution at...
3
by: Abid Ali | last post by:
Dear All I want to call dopostback of parent window from child window. Scenerio I am opening window from a page, and i have datatable in session which is updating at parent window and at...
1
by: MrFez | last post by:
I have an webform from which I open a child window to display a calendar. When a date is selected in the calendar window it attempts to set the value of a textbox in the main (parent) window by...
4
by: Jaime | last post by:
Hi all, I'm not sure if this is the correct forum, but here goes. Is there a way to not post back after a button (actually imagebutton) is clicked? I have something like: <asp:ImageButton...
2
by: Jacky Chau | last post by:
I have a modal dialog opened using window.showModalDialog. When that modal dialog closes, it causes the parent form to postback. Is there any way to stop it from forcing the parent page to...
6
by: Shawn | last post by:
Any ideas how I can have a button click on one open page force a postback on a different page.
6
by: Vear | last post by:
Hi, I have a web page that is in a master page. The user fills in the page and at the bottom I have a link for terms which when they click is causing post back. Here is the code. Is there a way...
4
by: Frank | last post by:
Hello everyone, I have a problem that the window.opener variable is lost once my popup page has a postback. On multiple pages they address this problem but I cannot find a correct answer. ...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.