0

I have some really complex ASP .NET MVC 3 page where I need to create multilevel hierarchy data.

(This data also includes download file names.)

Is there any best way to keep temp data for multiple AJAX requests in ASP .NET MVC 3 within 1 page?

Thank you!!!

2 Answers 2

3

Here are a couple of options:

1- use Session storage

2- Use TempData.Peek instead. This method reads the data but does not mark it for deletion

Sign up to request clarification or add additional context in comments.

Comments

1

Without more details you're looking at

1) MVC Session Object - a solid solution, but keep an eye object size

2) A hidden control (e.g. textbox/textarea) - easy to implement but may not be practical depending on the structure/type of data you're dealing with

3) JQuery Cache - easy and all client side

1 Comment

Ty! Also I found this opinion stackoverflow.com/questions/5181695/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.