User366448803 posted
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:
- NO Postback: setTimeout to 60000 (to refresh the screen, update DB data).
- IS Postback: Checks the database to see if an "alert" has happened (From an alert table in the DB). If it has an alert, then it will
load the Alarms.aspx page using the code below.
If myAlarm.Rows.Count > 0 then
dim strURL as string = Alarm.aspx?ID=" & myAlarm.Rows(0).Item(0)
ClientScript.RegisterStartupScript(GetType(Page), "Alarm", "<script language='javascript'>window.showModalDialog('" & strUrl & "',null,'dialogWidth=460px;dialogHeight=310px;status=no;resizable=yes;');document.frmAlog.submit();</script>")
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 is this:
Popup Page (Alarm.aspx)
- Takes a parameter
- Loads the alarm information from the database into multiple fields
- User has to interact with combo-boxes (which operate interactively based upon selection)
- User has to submit the data
This essentially means there are quite a few postbacks to Alarm.aspx itself, if that matters.
Any ideas how I accomplish this?