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

ascx control file which calls an aspx page, Tried all combinations of window.opener to reload the ascx page.

ascx control file which calls an aspx page, Tried all combinations of window.opener to reload the ascx page. It has no form on it so I even tried using form1 in the name to see if I could get it to reload. I even put a button on the page and that does an onClientClick that works on the button in the page. However when I try to invoke it with see the code below it will not reload from the aspx page(the child page).

function refreshAndClose1() {
opener.location.reload();
window.close();
}
async function refreshAndClose() {
function doit() {
if (window.opener && !window.opener.closed) {
window.opener.location.reload();
}
}
window.close();
setTimeout(doit, 100);
}
function surrogateUpDateFunc() {
alert('We are inside the aspx function');
window.opener.document.Form1.getElementById('btnRe fresh').click();
//function reloadwin() {
// window.open('', '_self', '');
// self.close();
// }
//setTimeout(reloadwin, 1000);
self.close();
//alert('We are about to attempt unload of opener!');
//window.opener.reload();
//window.opener.document.location.reload();
}

One thing which might be at issue here is the progarmmer who wrote this was using a lot of what he called modal stuff with async to get things to work in Chrome which were working ifine in the old IE11.
Jun 27 '22 #1
0 8772

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Pino Carafa | last post by:
I've designed an aspx page with a Tab Strip on it. The problem is that unlike some of the simpler controls like text boxes and buttons and the likes, this Tab Strip is rendered something like this:...
1
by: Hrvoje Vrbanc | last post by:
Hello all, here is what I'd like to do: I have an ASPX page with certain buttons that opens in its window, naturally. When any of those buttons is clicked, I'd like the action to happen in...
1
by: Randy Developer | last post by:
Ok, I've searched the web and newsgroups for a week now with no concrete answer. Question: How, if possible, can you either navigate to or get a listing of a directory to load on an asp page and...
2
by: InHyuk, Song | last post by:
I want to include ascx file, it displays some contents. therefore I drag the ascx file from the solution explorer into the design window of the aspx file. However, in case that ascx file(not...
3
by: kermit | last post by:
Hi, I am hoping this is a foolish or simple question. I am creating a multiuser app. consisit of a login page and a dataentry page. If the user leaves the data entry page (other than exiting the...
1
by: Vikas Kumar | last post by:
how to open word document and pdf file in aspx page
3
by: Greg Collins [Microsoft MVP] | last post by:
Okay, this is driving me nuts now. I spent all last night researching newsgroup postings, web articles, etc. Running multiple sites off the same shared hosting service, I want to be able to...
5
by: Simon Rigby | last post by:
Hi folks, Apologies if this is not directly relevant but I was struggling to find a group with the appropriate context. So as my problem is in an aspx web site I thought I'd try here first....
3
by: Ollie Riches | last post by:
How do I embed a *.flv file (Flash Video) into an aspx page similar to embedding windows media player active x control? Cheers Ollie Riches
1
by: GD | last post by:
I need a script to open a popup window which contains a php form. after the form has been submitted or cancelled i need to go back to the originated page (php also) and reload original page. do...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
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: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
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: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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)...

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.