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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:49:58+00:00 2026-06-15T16:49:58+00:00

Heres the scenario – using asp.net MVC with jquery mobile – newbie on both

  • 0

Heres the scenario – using asp.net MVC with jquery mobile – newbie on both

Problem: Back button sends a GET to a page that was created with a POST

Scenario:

  1. Page 1 has a searchbox and submit button – clck submit does POST to page 2.
  2. Page 2 has list of serch result links, click a search result, go to page 3
  3. Click back button on page 3, and it sends a GET to page 2.

Tried on Safari and Firefox. Firebug showing a GET on the back button.

Is this common? How would you deal with this?

A) When submitting form, somehow add the textbox to the URL (sounds tricky)

B) Mark the search page action with both HTTPPost and HTTPGet? Then save the search text in a session or somewhere?

C) Is there a better option?

Any advice 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-06-15T16:49:59+00:00Added an answer on June 15, 2026 at 4:49 pm

    I think may have approached this the wrong way. In general, POST should be used for requests that potentially modify state (update database etc) on the server, and GET should be used for read-only operations.

    In this case it is a read only action therefore a HTTP Get is the correct http verb to use. Assuming you are using Razor your form action would look like

    @using(Html.BeginForm("Index", "Search", FormMethod.Get))
    //generates an url like /search?q=searchterm
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My scenario: This is an ASP.NET 4.0 web app programmed via C# I implement
Here's the scenario: You have an ASP.Net application supported by a Microsoft SQL Server
Here's the scenario. I'm using a url rewriter that allows me to specify patterns
Heres the scenario: User comes to my website and opens a webpage with some
Here's the scenario: I have a textbox and a button on a web page.
Here's the scenario. I'm debugging my own app (C/C++) which is using some library
Heres the scenario: I am supposed to make a small site where user can
Here's the scenario: I connect to a server using telnet utility in Linux. After
ok so heres the scenario: i got a blog on the root directory of
Heres my scenario: multiple jsp pages all with fields and after a user has

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.