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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T15:21:25+00:00 2026-06-03T15:21:25+00:00

In my web app I has a GridView and some other control. User is

  • 0

In my web app I has a GridView and some other control. User is allow to sort and filter the grid view.They also allow to click the link and go to other page.Then they also can go to other more pages. But when they cum back to the first gridview page. The grid is same as what they left the page. For example paging ,sorting and other .

I found a solution about this . But I not really understand.
http://www.codeproject.com/Articles/7655/Persisting-the-state-of-a-web-page

Here is my coding WebForm1.aspx

  protected void Button2_Click(object sender, EventArgs e)
    {

                    PersistentStatePage abc = new PersistentStatePage();
        abc.RedirectSavingPageState("WebForm2.aspx");
    }

WebForm2.aspx

 protected void Button1_Click(object sender, EventArgs e)
    {
        PersistentStatePage.RedirectToSavedPage("WebForm1.aspx", true);
    }

Can anyone guild me some example?

  • 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-03T15:21:26+00:00Added an answer on June 3, 2026 at 3:21 pm

    That codeproject article is not really meant for this sort of scenario. It is about saving viewstate to a secure, on server location rather than sending it all to the user in a hidden input field which leads to a lot of bloat.

    The best way to go about this would be session.

    Create a custom object to store the info you want to persist and put it in session.
    Check out the following for an article about using session http://asp.net-tutorials.com/state/sessions/

    Then you don’t have to worry about passing the details around all the other pages.

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

Sidebar

Related Questions

I have C# MVC web app that has some textboxes that in IE9 you
I have a user profile page on my web app which has contact information.
My web app has a left nav containing a tree grid. I'm hoping somebody
My web-app has this secret place only some people are allowed to use. When
I have inherited a working VB.NET 2.0 web app that has several User Controls
I am designing a web app that has some information that needs to be
One of the views on my MVC web app has URLs that allow users
I have a web app that has standard user model information. I am building
My web app has been chugging along just great in Production for years with
I am building a web app that has a class called Product, which I'd

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.