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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:30:08+00:00 2026-05-22T23:30:08+00:00

I am having a search page with one dropdown list box, one button and

  • 0

I am having a search page with one dropdown list box, one button and one search result partial view. when user clicks button, it will use get request to filter the data with paging. for the tabular data the last column is “delete” link, currently delete functionality is working fine by using jquery ajax post, but I just can’t refreh the data correctly. The reason for that is I need current search url ( or querystring like filter value & paging number)parameter to keep the user selection same. How can I achieve that?

Thanks

Here is my Default Action with two parameter

        public ActionResult Default(string state, int? page = 1)
    {
        const int pageSize = 10;
        SearchModel model = new SearchModel();
        int total;

        List<xxx> result = _repo.SearchByState(state, page.Value, pageSize, out total);

        model.PageInfo = Pagination.ToPagedList<xxx>(result, page.Value, pageSize, total, 10);
        model.State = state;
        model.TotalCount = total;          
        return View(model);
    }
  • 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-22T23:30:08+00:00Added an answer on May 22, 2026 at 11:30 pm

    What I’ve done in the past is keep an instance of my filter/search criteria alive and pass it around as needed. In that scenario I used mostly AJAX calls to get and set data. So your criteria object in JavaScript may look like this (by default):

    var criteria = {
      name : {}, 
      title : {}, 
      pageSize : 10, 
      currentPage : 1
    };
    

    Then on a successful callback from your AJAXy Delete call, call Get/LoadData and pass the criteria object along.

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

Sidebar

Related Questions

Implement a link back to a search result page from one of its clicked
Having this div: <div id=advSearchDialog style=visibility:hidden;> <xx:search ID=searchUC runat=server /> </div> And a button:
I am having button on VF page for print of the VF page. This
I have a master page that contains a search box which is validated as
We have a page of search results which the user can hit in several
I'm building a custom search page and attempting to use an existing custom search
I'm having trouble wording my problem to search for it, so if anyone could
I'm having difficulties with multiple joins in the NHibernate Criteria search. Say I had
I am having utf-8 encoded file containing arabic text and I have to search
We're letting users search a database from a single text input and I'm having

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.