简体   繁体   中英

How to get the current state of the page in C#?

I have a page which contains many links and upon expansion of each link i have grid and button.The button when clicked will be redirected to an new page where some process is done and returns a message via querystring.My problem is how to show the message returned from new page exactly in the previous state(example: the toggling/expansion showing grid and button).How to do that??

You'll have to maintain state of which link was clicked (by passing it to the new page in the query string) and when you return from the new page you'll have to pass it back (in the query string ) so you can reconstruct the page as you desire (with the area relative to that link expanded).

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