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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:03:51+00:00 2026-05-27T00:03:51+00:00

.net MVC 2.0 question: The main problem is I want to paging my data

  • 0

.net MVC 2.0 question:

The main problem is I want to paging my data in Arraylist and show them in different pages in the View. (I want to paging data on client side because on my server side, data source stored in hash table, I can not do paging in database)
Here is a View called “Search”, which user can input keyword and click “submit” button and submit the form to Action:

     [AcceptVerbs(HttpVerbs.Post)]
    public ActionResult SearchKey(FormCollection forms)
{
//Deal with the searching keywords and return the new result list
ViewData["result"]=result_list;
return View("Search",Model); 
//I can not use return RedirectToAction("Search",new{id=page_num}) 
//which can not return the ViewData
}


public ActionResult Search()
{
ArrayList result_list = new ArrayList();
ViewData["result"]=result_list;
//I will also need to pass a Model to the view
return View(Model);
}

When I view my result, the url is:/Controller/SearchKey
So till here, everything is fine, I can get correct searching result, but I want to paging the result.Then I need to pass page number to the view, but the url:/Controller/SearchKey/page_num is not validate, if I type /Controller/Search/page_num, there is empty result (the result is returned from “SearchKey” action)

So my question is, for this situation, if I want to do client-side paging, what should I do?
Thanks

  • 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-27T00:03:52+00:00Added an answer on May 27, 2026 at 12:03 am

    If you want to paginate client side try to use an HTML table with a jQuery plungin such as DataTables or jqGrid.

    In the basic MVC MasterPage you already have jQuery loaded.

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

Sidebar

Related Questions

i want ask some question about asp.net mvc Is static constructor will init every
I heard that ASP.net MVC does not maintain View State.So,here is my question I
In a recent question posed here: ASP.NET MVC: Is Data Annotation Validation Enough? ...it
The question is similar to asp.net mvc Html.ActionLink() keeping route value I don't want
Hey all, this is a newbie ASP.NET MVC question. I have a view that
I asked this question: Is ASP.NET MVC destined to replace Webforms? and a few
This question is related to my ASP.NET MVC 2 development, but it could apply
I have a question I have a project asp.net mvc which is developed in
I'm new to ASP.NET MVC so this may be a stupid question. I have
Question How can I dynamically resize an image in ASP.NET MVC? Background I'm trying

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.