 |
| ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5 |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

September 19th, 2006, 04:11 AM
|
|
Authorized User
|
|
Join Date: Mar 2006
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Unnecessary refresh of parent window
Hi all,
I have developed an asp.net application i which i am using javascript for opening a child window. The parent window gets refreshed when the child window gets loaded. Also each time somebody performs any operation the parent window automatically gets refreshed.
I don't want the parent window to be refreshed till I am working with child windows. These unnecessary refresh everytime gives database calls due to which performance of the system is decreasing.
please help. Thanks in advance.
|
|

September 19th, 2006, 07:21 AM
|
|
Wrox Author
|
|
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
|
|
In the child window are you using the onUnload method of the body tag or are you calling window.opener anywhere?
--Stole this from a moderator
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.
|
|

September 19th, 2006, 07:31 AM
|
|
Authorized User
|
|
Join Date: Mar 2006
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
yes. There is a close button in the child window. In click event of close button , I am submiting the parent form (opener window) becuse I want the changes made in the child window to be reflected in parent window. while closing the child window if parent window refreshes then its ok. but every time I perform any operation like selecting value from dropdown or clicking on link button in child window the parent window gets refreshed which i don't want.
|
|

September 19th, 2006, 07:40 AM
|
|
Wrox Author
|
|
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
|
|
Then you are going to have to get away from the JavaScript or use AJAX in your child window so that it never refreshes.
--Stole this from a moderator
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.
|
|

September 19th, 2006, 07:56 AM
|
|
Authorized User
|
|
Join Date: Mar 2006
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I don't know how to use AJAX. Would you please suggest something some book or some site from where I can learn AJAX and implement it in my application???
|
|

September 19th, 2006, 08:07 AM
|
|
Wrox Author
|
|
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
|
|
AJAX is very straight forward though an understanding in Javascript and XML is somewhat necessary, the links that Jim provided should help you out.
--Stole this from a moderator
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.
|
|

September 19th, 2006, 08:13 AM
|
|
Authorized User
|
|
Join Date: Mar 2006
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thank you very much. I will follow your guidelines and let you know about the results.
|
|
 |