Last post Apr 23, 2021 05:10 AM by yij sun
Apr 22, 2021 07:00 PM|CovingtonFF|LINK
I have some old code that works fine in IE11, but any modern browser it will not work. The web page itself has a lot of data on it using an ItemTemplate with a Table and data from a Database query.
When the page loads, the code is checking IsPostback:
If myAlarm.Rows.Count > 0 then
dim strURL as string = Alarm.aspx?ID=" & myAlarm.Rows(0).Item(0)
This works fine on IE11, but they are moving to Chrome and it does not work. Now, I am aware that showModalDialog no longer works in modern browsers, but I tried window.open and that did not work either. I'm fine restructuring the code, but the problem
Popup Page (Alarm.aspx)
This essentially means there are quite a few postbacks to Alarm.aspx itself, if that matters.
Any ideas how I accomplish this?
Apr 22, 2021 10:34 PM|SurferOnWww|LINK
I suggest that you use a user control instead of the alarms.aspx and the modalpopup extender of Ajax Conttol Toolkit.
Apr 23, 2021 05:10 AM|yij sun|LINK
It is very possible that the popup window is blocked by Google Chrome, because it will show automatically in the page load. Google Chrome does not know that the popup window is legal or not. Please see Page tools: Pop-ups.
To overcome the issue, an easy way is avoiding the popup. Try redirection instead: