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

  • Home
  • SEARCH
  • 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 88293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T22:32:14+00:00 2026-05-10T22:32:14+00:00

I have forms in my page a get and a post and i want

  • 0

I have forms in my page a get and a post and i want add pager on my get form .. so i cant page through the results..

The problem that i am having is when i move to the second page it does not display anything..

I am using this library for paging .. http://stephenwalther.com/Blog/archive/2008/09/18/asp-net-mvc-tip-44-create-a-pager-html-helper.aspx

this my actions code.

    [AcceptVerbs('GET')]     public ActionResult SearchByAttraction()     {         return View();     }        [AcceptVerbs('POST')]     public ActionResult SearchByAttraction(int? id, FormCollection form)     {....     } 

and this is what i am using on my get form to page through

<%= Html.Pager(ViewData.Model)%> //but when i do this it goes to this method [AcceptVerbs(‘GET’)] public ActionResult SearchByAttraction()

instead of going to this this

[AcceptVerbs(‘POST’)] public ActionResult SearchByAttraction(int? id, FormCollection form)

which sort of makes sence .. but i cant really think of any other way of doing this

Any help would be very appreciated..

Thanx

  • 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. 2026-05-10T22:32:15+00:00Added an answer on May 10, 2026 at 10:32 pm

    I’d recommend against doing paging via HTTP POST. Page and search criteria are 2 perfect examples of what querystrings are meant for. Put those values in the query string & have that load up your action args.

    Think about this. You can search google for ‘pies’, navigate to page 14, copy the link and send it to your grandma. You can’t do that when your paging/search only works with form posts.

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

Sidebar

Related Questions

I have web forms page that has 2 controls. A gridview and an associated
I have 4 forms on a page. Form 1 must be submitted with either
I have multiple forms on a page, for each of them I want the
I have two forms on one page and want to have the input boxes
I have multiple ajax forms on page that cointain same elemets, I have jquery
I have 3 forms at the same page and each has a different form
I have multiple forms for lots of products on my page and want to
I have a Django project that, on one page, has multiple forms (in different
I have a page of similar items, each in their own form I want
I want to have two separate forms on a single create page and one

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.