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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:51:47+00:00 2026-05-23T17:51:47+00:00

I have a simple webform which have few text fields,leabels and Submit button. When

  • 0

I have a simple webform which have few text fields,leabels and Submit button. When I click on Submit button then button1 event is fired and data is Submitted.

But what worries me is , when I refresh the page after submitting data immediately and then I get the following errror:

enter image description here

And when I see the database to check the entry there there exist a duplicate entry.

I don’t understand why the button click even is being fired even when I hit refresh and there is no way I clicked on Button1.

And how do I avoid this from happening.

  • 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-23T17:51:48+00:00Added an answer on May 23, 2026 at 5:51 pm

    What is happening here: then you refresh the page, browser send exactly the same request as it send previously, since you posted the form it sends POST to server. Generally, same form should never be submitted twice, so browser (not only IE) gives a warning for that. Since you confrim that it re-send same form and you code executed second time.

    This is quite normal behavior, but! All the time you handle POST, you have to check that you do not post same data twice, this is serious error. You can handle that either on bussiness logic lever or DB level, doesn’t matter. But it should be handled.

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

Sidebar

Related Questions

I have a simple form (textbox, submit button) which is wrapped in an update
Strange problem. I have a simple webform where users can fill in text and
hi i have a very simple webform i have a button and a gridview
I have an button in my Jquery mobile page, which is using asp.net webform.
I have a simple webform that will allow unauthenticated users to input their information,
Will keep this as simple a possible:- I have a have a controller which
I have simple web application (asp.net - ajax) I have a web form which
In my asp.net webform page I have a simple form with a single inputfield
I have a WebForm with 4 combo boxes, which allow user to define different
I have simple regex \.*\ for me its says select everything between and ,

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.