| | |
Differences between Session and ViewStates?
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Dec 2004
Posts: 1,655
Reputation:
Solved Threads: 35
"Session" is data stored per user session. "Viewstate" is an ASP.NET thing. It's a way for the application to maintain state about a particular form and its child controls. Your ASP.NET application might consist of several pages/forms. There might be a piece of data that you want to access across all pages. You could place that in a Session variable. However, you rarely need to worry about ViewState, ASP.NET manages that itself.
I've written some articles that discuss Viewstate: http://www.tgreer.com/aspnet_html_02.html
This article shows how you might use Session: http://www.tgreer.com/aspnet_html_04.html
I've written some articles that discuss Viewstate: http://www.tgreer.com/aspnet_html_02.html
This article shows how you might use Session: http://www.tgreer.com/aspnet_html_04.html
![]() |
Similar Threads
- Session variable (ASP.NET)
- Zend PHP Certification (PHP)
- how can i used session and cookies ??? (PHP)
- How to maintain session for Web Services Object? (VB.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: ASP.NET Tutorial: Caching in ASP.NET
- Next Thread: Differences between web services and xml web services
| Thread Tools | Search this Thread |
.net 3.5 activexcontrol ajax alltypeofvideos appliances asp asp.net bc30451 beginner box browser businesslogiclayer button c# cac checkbox class commonfunctions control countryselector dataaccesslayer database datagrid datagridview datagridviewcheckbox datalist deployment development dgv dialog dropdownlist dropdownmenu dynamic dynamically edit embeddingactivexcontrol expose fileuploader fill findcontrol flash formatdecimal formview gridview gudi iis javascript list listbox microsoft mouse mssql nameisnotdeclared news novell numerical opera panelmasterpagebuttoncontrols problem radio redirect registration relationaldatabases reportemail save schoolproject search security sessionvariables silverlight smartcard smoobjects software sql sql-server sqlserver2005 ssl suse textbox tracking treeview unauthorized validatedate validation vb.net video videos vista visualstudio vs2008 web webapplications webdevelopemnt webdevelopment webprogramming webservice wizard xsl youareanotmemberofthedebuggerusers






