473,779 Members | 1,912 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

pdating parent window from popup....

sri
hi All:
This is the situaton..
I have a treeview with nodes in an aspx page. The node data is coming from
DB. when i select a node and click add button, a pop up screen is ahown
where the user enters childnode information. the pop up has a save button
and when the user clicks save, the data gets saved in DB. Popup also has a
close button, clicking which closes the screen..

My Problem: When i close the popup, how can i refresh the tree view with the
child node data added in the popup..?

Any examlpe/ideas/suggestion/pointer will be appreciated...

TIA,
-sri
Nov 17 '05 #1
2 1349
sri,

I have some samples of this code on my website, www.aboutfortunate.com. Just
search the code library for: "refresh parent from popup"

If you have any questions about utilizing it feel free to email me. I've
done this in three different .Net applications so far and it works very
well!

Sincerely,

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"sri" <sr******@nospa m.yahoo.com> wrote in message
news:OS******** ******@TK2MSFTN GP09.phx.gbl...
hi All:
This is the situaton..
I have a treeview with nodes in an aspx page. The node data is coming from
DB. when i select a node and click add button, a pop up screen is ahown
where the user enters childnode information. the pop up has a save button
and when the user clicks save, the data gets saved in DB. Popup also has a
close button, clicking which closes the screen..

My Problem: When i close the popup, how can i refresh the tree view with the child node data added in the popup..?

Any examlpe/ideas/suggestion/pointer will be appreciated...

TIA,
-sri

Nov 17 '05 #2
sri
Thanks Justin.
Just saw your code..I havent yet tried it..one thing i missed to mention
is..this popup is coming from another popup screen...(this is the way the
end user wants it..!) with attirbutes like
Response.Write( "<script
language=javasc ript>window.ope n('Addcontent.a spx','AddStream Comp','height=6 9
5,width=750,top =80,left=150,st atus=yes,toolba r=no,menubar=no ,location=no,re s
izable=yes,scro llbars=yes')</script>")

so the tree view screen is a popup with similar window attributes. and from
this screen i am opening one more popup. From this screen i need to be able
to update tree view...
so where do i put this javascript function..?
"S. Justin Gengo" <sj*****@aboutf ortunate.com> wrote in message
news:#u******** *****@TK2MSFTNG P10.phx.gbl...
sri,

I have some samples of this code on my website, www.aboutfortunate.com. Just search the code library for: "refresh parent from popup"

If you have any questions about utilizing it feel free to email me. I've
done this in three different .Net applications so far and it works very
well!

Sincerely,

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"sri" <sr******@nospa m.yahoo.com> wrote in message
news:OS******** ******@TK2MSFTN GP09.phx.gbl...
hi All:
This is the situaton..
I have a treeview with nodes in an aspx page. The node data is coming from DB. when i select a node and click add button, a pop up screen is ahown
where the user enters childnode information. the pop up has a save button and when the user clicks save, the data gets saved in DB. Popup also has a close button, clicking which closes the screen..

My Problem: When i close the popup, how can i refresh the tree view with

the
child node data added in the popup..?

Any examlpe/ideas/suggestion/pointer will be appreciated...

TIA,
-sri


Nov 17 '05 #3

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

Similar topics

1
3763
by: Marshall Dudley | last post by:
I have an application where in a shopping cart checkout a popup appears which suggests other items that may go with what was ordered with a button to add these items to the cart. When the button in the popup is clicked, the popup should present an added items to cart message, close, and reload the parent window, so the parent will show the new item in the cart. It is all working except the post contents for the parent window are being...
4
22212
by: Davey | last post by:
I have a website which has a popup window (this only opens when the user chooses to open it). In the popup window I have a <select> control which lists a selection of "classes". Each class has a description and a class_id (stored in the value attribute of each option). The user will then select a class from the drop-down list. What I want to do is have a control in the parent browser window which can store the class_id and the...
4
2766
by: Earl Teigrob | last post by:
I am thinking about using a popup window to edit settings that will affect parent asp.net page. The data that is changed in the popup window will be saved to the datastore that is loaded and displayed by the parent page. In order to refresh the parent page, I would like to raise an event in the popup (child) page that is subscribed to by the parent so that I can rebind the data in the parent page once the data in the child window data is...
1
11583
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 http://weblogs.asp.net/asmith/archive/2003/09/15/27684.aspx but it was far more complex then I needed. (I got lost trying to figure it all out). Therefore, here goes my simple "web dialog box with parent event handler fireing" solution. ...
5
8042
by: midnight_use_only | last post by:
hi all, quick question, how do you submit a form to a parent window from a child popup window? i have the following and all online documentation *suggests* that it should work but it does NOT: // Parent window: <script language="JavaScript"> function popup(url, name) { window.open(url, name, "width=800,height=600,scrollbars=yes");
3
3581
by: Opa | last post by:
Hi , I have a form with javasript which launches a popup via the showModalDialog() method. I get the dialog to open, now I am trying to first get a reference to the calling form from the popup and then do a refresh of the calling form. Any ideas on how to get a reference to the calling form? I tried window.parent.location.reload() , but it doesn't work. Thanks a lot.
2
2342
by: sangram | last post by:
i need a javascript for popup window and how to pass value to that new window from old window .
18
2339
by: jonpfl | last post by:
All, I am using javascript (window.open()) to create a popup to do some processing. This popup is going to create a PDF which can take anywhere from 10 secs to 2 mins (alot of backend SQL calls) and I was hoping to use this popup to show the user that something is going on (animated gif) and give them the ability to use the parent window to do other things in our system (while the popup is creating the PDF on the server). My problem lies...
0
9632
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10136
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9925
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8958
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7478
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5372
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4036
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3631
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2867
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.