Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 704647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T03:57:53+00:00 2026-05-14T03:57:53+00:00

Being a bit perplexed about this issue by now, I hope some of you

  • 0

Being a bit perplexed about this issue by now, I hope some of you gurus can shed some light on my problem…

I’ve developed a AJAX-enhanced website, which has been running fine in IE, Chrome and Firefox for a year or so. I use a Timer-control to check for incoming messages every 30 seconds, and this updates an UpdatePanel showing potential new messages.

Now several one of my Firefox users complain about the page refreshing every 30 seconds! I my self cannot reproduce this behaviour, but given the “30 seconds”-description, I cursed my Timer-solution as the culprit.

But now, I’m experiencing this error myself, not in Firefox though, but in Google Chrome! (And only on one of my two computers!) Every 30 seconds the page reloads! But I found that it’s not only related to the Timer, because all other asynchronous postbacks to the server within UpdatePanels reloads the entire page as well.

This error has never been experienced in Internet Explorer (to my knowledge).

As I said, this it not only related to the Timer postback, but if it’s of interest to anybody the code is like this:

<asp:Timer runat="server" ID="MailCheckTimer" Interval="30000" OnTick="MailChecker_Tick"></asp:Timer>

<asp:UpdatePanel runat="server" ID="MailCheckerUpdatePanel" UpdateMode="Conditional">
    <ContentTemplate>
         <div class="newmail_box" runat="server" id="newmail_box">
           <!-- Content stripped for this example -->
         </div>
    </ContentTemplate>
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="MailCheckTimer" />
    </Triggers>
</asp:UpdatePanel>

In other places of the website I call the client side __doPostBack function directly from JavaScript in relation to an UpdatePanel. Normal behaviour for this call is to updated the referenced UpdatePanel with some content, but now in Chrome this refreshes the entire page! (but again not consistently, and never in IE)

Even the most fundamental UpdatePanel operations like refreshing the content after a button (inside the panel) is clicked, forces the page to reload completely:

<asp:Button ID="btnSearch" runat="server" Text="Search" OnClick="btnSearch_Click"></asp:Button>

And just to torment me further, I only experience this on my public website, and not in my local development environment, making it a tedious affair for me to find the actual cause! 🙁

Any ideas on why this happens? Why so inconsistently? Has it to do with my UpdatePanel-design? Or does some security setting in Firefox/Chrome that prevent some asynchronous UpdatePanel callbacks?

Any help or idea is highly appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T03:57:54+00:00Added an answer on May 14, 2026 at 3:57 am

    OK. I fixed it. For what it worth for any future hair plugging readers, here’s what I went through:

    I read the article at http://blogs.visoftinc.com/archive/2007/09/23/asp.net-ajax-updatepanel-not-working-common-problems.aspx suggested by TenaciousImpy. Interesting though it seemed, I tried setting the xhtmlConformance attribute to Transistional without any effect. I also tried validating my content with the excellent XHTML Validator Service at validator.w3.org, and even though it did feel good to get my HTML up to shape, it didn’t solve my problem. I could still reproduce the error in Chrome, meaning every post back refreshed the entire page… 🙁

    And then by pure chance (and isn’t it so often by chance we notice the cause of the most irritating bugs?) I noticed that my Authorization-logic was called on a post back that wasn’t suppose to do anything like that. Yes!… Finally a clue that should quickly help me locate cause of my alopecia.

    Cutting to the chase here, it shows that, Google Chrome and Firefox, when set to remember the login-information for a specific website, send these information with every single post back. I normally send these to the server, and check for them like this:

    string usern = Request["loginusername"] as string;
    string password = Request["loginpassword"] as string;
    
    if (!String.IsNullOrEmpty(usern) && !String.IsNullOrEmpty(password))
    {
            Authenticate(usern, password, Request["rememberme"] != null);
    }
    

    Well, I checked for these parameters early in my MasterPage, and if they existed I assumed the user submitted a login request. I authenticated the user, and for ease of programming I redirected to user the same page (ie. refreshing the page in a logged-in-format and removing the login controls).

    Ergo my Timer with a tick every 30 second had its call back parameters extended with the user’s login preferences, when having set Chrome or Firefox to remember your latest login and password.

    The solution was hereafter simple and obvious. I now only call my Authentication-logic for anonymous users:

    if ( Session["user"] == null ) // Check parameter indicating a logged in user
    {
          string usern = Request["loginusername"] as string;
          string password = Request["loginpassword"] as string;
    
          if (!String.IsNullOrEmpty(usern) && !String.IsNullOrEmpty(password))
          {
             Authenticate(usern, password);
          }
    }
    

    This allows my site to support the Login-preference memory in Chrome and Firefox.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Now, I could be being a bit thick and be doing this the wrong
I might be being a bit thicky here but please answer me this. Consider
I think this question may end up being a bit subjective so I'm marking
Being spotted in context of this question this seemingly inconsistent behavior can be reproduced
I'm a bit perplexed with this code. $this->product is an Object with 12 vars.
I imagine this is common enough that it's a solved problem, but being a
Being a bit lazy, I'd like to add some properties of mine to a
I'm a bit perplexed by drag and drop in wxPython (but perhaps this questions
I'm perhaps being a bit lazy asking this here, but I'm just getting started
Being a bit dim this morning have this query $result = $DBH->query(SELECT MAX(date_start) as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.