Ways to pass data for asp.net website
- ViewState – Maintain data for postback for a page
- Context items collection – Simple data pass from 1 page to another. (common use for server farm)
- QueryString – put value in the URL
- Session – Server store value per user (example: user id)
- Application – For the whole web application
- Cache – Server storing data among all users (example: the product table)
- Cookie – Store information on the user’s pc for a long time (example: track first time visit)
- PreviousPage object
…and others
No comments yet
Leave a reply