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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:16:06+00:00 2026-06-18T01:16:06+00:00

My Page structure I have 3 textboxes in which i have client validation enabled.

  • 0

My Page structure

I have 3 textboxes in which i have client validation enabled.

I have submit button to post the form data.

Issue

When i click on submit button then it will go to my Post method, suppose i have not entered value in textbox then it throws me error from server side (Http Post).

Now i will enter the value in textbox then i will refresh the browser, it entering into Post method instead of Get !!!

Any help on this ??

  • 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-18T01:16:08+00:00Added an answer on June 18, 2026 at 1:16 am

    This is the default behaviour for a browser which reissues the last request on refresh which in this case happens to be a POST.

    If you are looking to prevent a re-POST on refresh you should implement the PRG (POST-Redirect-GET) pattern in MVC. This is where the Controller which receives the POST redirects using a GET request after processing. Thus the last browser request is a GET which will be reissued upon refresh.

    [HttpPost]
    public ActionResult Create(Model model) {
        if (ModelState.IsValid) {
          //do processing
             return RedirectToAction("Details", new { id = model.Id })
        }
        return View(model);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have A single page that has the following structure <form runat=server><placeholder></placeholder></form> I have
my structure is like this: master page aspx(web form) ascx(user control) I have a
I have created a JSF 2 page which uses Facelets to define the structure
I have a page which is split into 3 parts with 2 submit buttons:
I have a page structure which looks like: <article><p>Title</p></article> I'd like to modify the
My page structure is like I have a html page which consist of a
I have the following page structure: <span>content01</span> <span>content02</span> <span>content03</span> <br/> <span>content04</span> <span>content05</span> <span>content06</span> <br/>
I have the HTML structure for my page as given below. I have added
My permalink structure is set so I have url.com/page I made a basic PHP
In my application (written in c#) I have a textbox and a submit button.

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.