Click here to Skip to main content
13,559,281 members
Rate this:
Please Sign up or sign in to vote.
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 .

Posted 2-Aug-12 23:16pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.
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.
ChristianGraus 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03-2016 | 2.8.180515.1 | Last Updated 3 Aug 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100