473,581 Members | 2,607 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Save Data in Database; reload opener window from Popup window ASP.

JJ
Hi All,

How in ASP.NET, from PopUp window:
1) - save Data in Database;
and after
2)
a) - Reload the opener window
b) -close PopYp window.

Note:
for Question 2)
I did it without problem:
<script>window. opener.location .reload();windo w.close();</script>

But the problem is I need to save data in database befor I reload the opener
win.

thanks

Jawad


Nov 18 '05 #1
1 3622
Try using RegisterStartup Script

EX :
RegisterStartup Script("jScript ",
"<script>window .opener.locatio n.reload();wind ow.close();</script>")

"JJ" wrote:
Hi All,

How in ASP.NET, from PopUp window:
1) - save Data in Database;
and after
2)
a) - Reload the opener window
b) -close PopYp window.

Note:
for Question 2)
I did it without problem:
<script>window. opener.location .reload();windo w.close();</script>

But the problem is I need to save data in database befor I reload the opener
win.

thanks

Jawad

Nov 18 '05 #2

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

Similar topics

3
2042
by: Frederic Houbie | last post by:
Hi, I have a problem that seems simple, but do not fid how to solve it. I have a window with 2 frames (A et B). When I click on a link in A, I open a window. In that window, I have a form and when it's submited, I must come back to this popup to display things, but I would also like to reload frame A. How can I do that ? How can I access...
3
4571
by: sentinel | last post by:
Hi all, I'm trying to reload a frame from a pop-up, but really cannot figure this out. Within my index.htm file, I make a link to call a pop-up frame with a javascript function that calls the following code from an external javascript source file, dynamically created with PHP document.write('<a href="javascript:void(0);"
2
1796
by: JPL Verhey | last post by:
(i hope somebody (else) will read and have an idea! Thnx) Hi, With a script in a popup window, I want to check if certain content is present in a page loaded into the frame "main" of the frameset in the opener window. I started with something like this (what happens when the considions are met already works):
2
3466
by: alex bazan | last post by:
I'm popping a window to a page with a different dns than the parent, and i want the opener's location reloaded when this window is closed. With Mozilla it seems that all the opener's methods and properties are protected because the dns are different. A security exception (permission denied) is thrown every time i try to exec an...
19
31033
by: Darren | last post by:
I have a page that opens a popup window and within the window, some databse info is submitted and the window closes. It then refreshes the original window using window.opener.location.reload(). The problem is that after the reload, it brings you right to the top of the page. When I click 'refresh" on the original page, it brings me back to...
2
2496
by: ENIZIN | last post by:
I am having an interesting problem where I am simply trying to put in country selection popup window on my site. When the user closes the window the popup should call the window.opener.location.reload(true) function and show the newly selected country. Well, when I try it from my MAC box I get an Access denied error but when I do it from my...
2
2961
by: TH | last post by:
Hi there What's the best way for a popup to cause an event to fire in the opener? I've got a popup which currently returns a value to the opener by setting a hidden input in the opener: window.opener.document.forms.myHiddenField.value=returnValue; window.close(); I then want the opener window to perform some work on the returned
7
24524
by: Raffi | last post by:
I'm facing a tricky (at least for me) page reload/refresh scenario and need some help. I'm working on a web application which is primarily used with MSIE. The application has a main window with an i-frame in it. The i-frame contains various dynamic links for opening data entry popups. One of these popups has a couple of i-frames itself....
3
4258
by: Bruce | last post by:
I have an application where a main window opens a popup window. Within the popup, I want to be able to post a form back to the popup all the while maintaining the opener property. Of course, once the popup window re-loads itself by posting a form to itself, all Javascript state information is lost and so opener is undefined. Is there any...
0
7868
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...
0
8149
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7899
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6553
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...
0
5364
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3805
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...
0
3827
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2301
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
0
1138
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...

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.