Click here to Skip to main content
15,914,642 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a link on a website on click of which a new website in a new tab gets opened.

While opening the site in new tab, i set a flag and open the new site.

My question is when i close new tab ie site i want to reset the flag, so that i can check if the flag is not yet RESET (new site is still opened) or its done. If its still opened in tab then i cant open another site on clicking the link.

So when i close the tab that flag must be reset and send to main website, so that i can check its status in main website! How to do this??

Can anybody Help??
Posted
Updated 10-Jan-11 2:12am
v2

You could use a session variable to hold the flag value, and setup a page with a querystring value that allows the session var to get set when the other web site calls the page. Of course, this will only work if you have control of both web sites.

There also may be some sort of DOM trickery you can take advantage of, but that's going to require some delicate googling skills.

Then again (if you have control of both web sites), you could always setup WCF communications between them.

I don't have any inter-site communications experience to speak of, so I could only guess at search phrases.
 
Share this answer
 
v2
Comments
Sandesh M Patil 10-Jan-11 9:00am    
Good Answer
Manoj from Pune 11-Jan-11 1:28am    
Thanks buddy.
You can try making use of the PostBackUrl and PreviousPage properties to acheive this.


Post To Another Page in ASP.NET 2.0[^]

I am not sure if it has "set" access to properties using Previous page..You may try it with this article's help.
 
Share this answer
 
Comments
Manoj from Pune 11-Jan-11 1:29am    
Thanks Anupama
Anupama Roy 11-Jan-11 1:30am    
You are welcome!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900