BINU VARGHESE
BINU VARGHESE

Reputation: 372

How to check whether an application is open in browser session?

I have two separate web applications. If I am in one (say app A), I should be to click on a link or button (on page 1 of A) to go to the other application’s a page (Page 1 of B). If app B is open in a browser window, I should go to it. Should not open a new window. If app B is not in a browser session, I should get a new window. All these needs to be in the client side.

Upvotes: 0

Views: 2535

Answers (2)

user614946
user614946

Reputation: 619

try this use session variables and when app A load type this in page_load event : session["App"]="A"; and on every link button click event use to check session["App"].string() for the if esle to rediret it to B and if its B dont redirect it .

Upvotes: 0

Amadan
Amadan

Reputation: 198324

If you're using a link, use the target attribute. If you're using JavaScript, use the second parameter to window.open. In both cases, these name a window - only one window of the same name will ever be opened.

Upvotes: 1

Related Questions