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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T14:42:56+00:00 2026-06-07T14:42:56+00:00

Possible Duplicate: Why in ASP.NET is a button click event executes when page is

  • 0

Possible Duplicate:
Why in ASP.NET is a button click event executes when page is refreshed?

I want the code to avoid button click event from firing when page refresh occurs, i can not give response.redirect as i have some labels to be displayed after the button click event occurs.
Is there any chance that i can find out weather the page is page refresh from code behind in .cs ?

Thanks in advance

  • 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-07T14:42:57+00:00Added an answer on June 7, 2026 at 2:42 pm

    You can redirect to the same page, passing some parameters by query string, indicating that the operation has been succesfully (or not), and then display the appropiate message in your labels.

    I’d not recommend a Session state approach, due this is could be problematic if the user has several tabs for the same page.

    Also keep in mind that if you reload the page, it will be a new request, therefore the Page.IsPostack is useless cause it always will be false.

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

Sidebar

Related Questions

Possible Duplicate: Get URL of ASP.Net Page in code-behind I'm trying to hold current
Possible Duplicate: Text on an Image button in c# asp.net 3.5 I want a
Possible Duplicate: How do I call unmanaged C/C++ code from a C# ASP.NET webpage
Possible Duplicate: ASP.NET authentication login and logout with browser back button I want to
Possible Duplicate: ASP.Net: DropDownList's SelectedIndexChanged event not firing I created a new ASP.NET default
Possible Duplicate: How do I call unmanaged C/C++ code from a C# ASP.NET webpage
Possible Duplicate: sms from our site I want to send SMS from my asp.net
Possible Duplicate: asp.net pass a value into next page I am requesting quantity from
Possible Duplicate: How to: Back button support “Ajax” I have a ASP.NET MVC implementation
Possible Duplicate: Multiple forms on ASP.NET page i have a doubt. can we place

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.