Click here to Skip to main content
15,886,701 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi ,

I have implemented a webproject in ASP.NET and C# and deployed it on the server as well.
The problem is when the page is loaded and we try to open a new tab , the old tab gets refreshed . This does not happen always but happens intermittently.

I cheked my code and no-where is the meta tag / time out / auto refresh set.

I also changed the browser settings to disable the metarefresh .


PLEASE HELP!!
Posted

1 solution

This is very unclear. Is the new tab being shown at all ? Is the new tab a new page ? Should a postback occur ? Does it ? Usually these sort of requests, the code is doing a full postback, when it's not intended. We can't fix your code without seeing it. There are no tabs in ASP.NET, unless you mean tabs in the browser. In this case, there is no action in terms of opening a new tab that will change how an existing tab acts, this could be an example of the confirmation bias, where you think one thing causes another and when they correlate, you assume causality.

Impossible to say more based on what you posted.
 
Share this answer
 
Comments
lebna thomas 6-Aug-12 2:32am    
I am sorry that my question was a little ambiguous.
Here, I meant the browser tab. After loading my ASP page from the server, when i open a new tab in the browser, my ASP page gets refreshed.
I have implemented the code to get the sender of the post back in the page load and write it to a text file. But it looks like the event causing the refresh is not written into the file.
Christian Graus 6-Aug-12 3:03am    
I honestly don't see how that is possible. I use a browser every day and I've never seen that happen, nor does opening a new tab create an event that could cause it. Are you *sure* ?
lebna thomas 6-Aug-12 3:19am    
Yes, I am sure. It has been happening for a few days now and I am not able to find out why.And also, I checked on different PCs, it happens only in some PCs. I tried changing the Internet Settings and turning off metarefresh, but to no help.

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