473,385 Members | 1,587 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,385 software developers and data experts.

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 1326
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******@nospam.yahoo.com> wrote in message
news:OS**************@TK2MSFTNGP09.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=javascript>window.open('Addcontent.aspx', 'AddStreamComp','height=69
5,width=750,top=80,left=150,status=yes,toolbar=no, menubar=no,location=no,res
izable=yes,scrollbars=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*****@aboutfortunate.com> wrote in message
news:#u*************@TK2MSFTNGP10.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******@nospam.yahoo.com> wrote in message
news:OS**************@TK2MSFTNGP09.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
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...
4
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...
4
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...
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...
5
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: ...
3
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...
2
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
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)...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.