Thanks, David. I was worried that might be the case. That said, would I be minimizing traffic between Web server and Web client by getting rid of Implicit Instance on each of these WebPages? It seems that if I want a generic CloseOtherWebPages method to cover this, where it closes all other WebPages but the current one, each would have to be open before closing it.
That is, WebPage1.Close will implicitly open and close WebPage1, even if it wasn’t open at that time. I don’t mind that so much if it doesn’t increase traffic between Web server and Web client. But if it does, it sounds like such methods should rely on Implicit Instance being OFF.
// Closes all WebPages except nameOfPageToNotClose
Dim i As Integer
For i = Session.PageCount - 1 DownTo 0
If Session.PageAtIndex(i) <> Session.PageWithName(nameOfPageToNotClose,True) Then
Session.PageAtIndex(i).Close
End If
Next
In the Shown event of a WebPage where I don’t want others to remain open, I just do