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 8516991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T05:34:36+00:00 2026-06-11T05:34:36+00:00

I get stuck in a very unusual problem. I’ve a code written in C#

  • 0

I get stuck in a very unusual problem. I’ve a code written in C# which is simply checking IsPostBack property on the Page_Load. I know that IsPostBack remains false when page lands for the first time and bocme true only when any control post the form to the server (having runat=sever).

I also know that if we hit refresh, the IsPostBack property should change to false (since refresh is not a postback).

This is the sample code:

if (!IsPostBack)
{
    // If I click on any control on the page, and then hit refresh,
    // the code inside this block should execute, but this is not happening.
    // After first postback, I tried refreshing the page for more than
    // ten times, but always finds IsPostBack=true

    // ...
}
else
{
    // ...
}

I clicked on a server side button (a postback), then hit refresh. I assume it will go to the if block but no luck. No matter how many times i hit Refresh on browser, IsPostBack is always true. which is truly an unusual activity I’ve never seen before.

I would really appreciate any help. I need to know why this is happening, is this a browser related problem or something else? I used mozilla and chrome.

Every time I hit refresh, I get a warning on both browsers.

  • On chrome: Confirm form submission
    The page that you’re looking for used info that you entered, returning to that page might cause any action you took to be repeated.Do you want to continue?

  • On mozilla: Confirm
    To display the page, firefox must send info that will repeat any action…

Thanks in advance for any kind help.

Praveen

  • 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-06-11T05:34:38+00:00Added an answer on June 11, 2026 at 5:34 am

    Most browser will do a post of the same data if you refresh after posting.

    This is the meaning of the dialogues you have seen (they are asking if you want to re-post – click yes/OK means a re-post).

    In order to avoid the re-post, simply go to the address bar and press enter. That will cause a new request to be issues rather than a re-post.

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

Sidebar

Related Questions

I'm having a strange problem with ZeroMQ, in which some messages get stuck, and
Very stuck on a problem which I thought would be pretty simple. As an
I get stuck sometimes with very long clauses and I am looking for a
Sometimes I still get stuck trying to translate procedural code into functional code. Is
I'm trying to understand why my code get stuck in the for loop of
I get stuck with something that , I guess , is very trivial. Basically
I have a very weird problem using OpenMP in my C++ code: void update(double
Stuck with an unusual problem, would seem that I love doing things that's not
I'm not very good at C, and I always get stuck on simple string
I have a page which always get stuck only in chrome and safari. The

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.