简体   繁体   中英

GridView Sort Problem after Browser's Back Button Clicked

I have a web form with a gridView inside an UpdatePanel.

After make a search and sort the gridview the user can click in a row to select the value to be edited, when it's clicked another page is opened.

The problem is, when the user click on the Browser's Back Button on EditPage the Search page doesn't keep the Sort and the Search previously set.

Any insight will be considered, please guys give me some way to get in!

You, have to store the Searched result seperately in a DataView and should load into the Datagrid. Before going to the Edit Page Save the Sorting Term whether may be ASC or DESC in some Session Variable, and after clicking Back Button Resort with the Sorting Term.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM