473,382 Members | 1,518 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,382 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 8841

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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
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

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.