Viewstate
-
hi, my question is that can i store a dataset in the viewstate of the aspx page> i know that it is possible but will it effect the performance. keep in mind that the servers are pretty good and powerful, but the record count can be in thousands; more than 20 to 30 thousands. thanx in advance ☺«««DTA»»»☺
-
hi, my question is that can i store a dataset in the viewstate of the aspx page> i know that it is possible but will it effect the performance. keep in mind that the servers are pretty good and powerful, but the record count can be in thousands; more than 20 to 30 thousands. thanx in advance ☺«««DTA»»»☺
azam316 wrote: but will it effect the performance It surely will. ViewState is simply serialized, encrypted (if ViewStateMAC is enabled) data and send to the client. I would not recommend to store a dataset in the viewstate. In fact, in the project I'm working currently on (huge amounts of data here), we're trying to design our code in a way, that there is little or no need for anything being stored in the ViewState. I've read somewhere (but forgot the source) that the ViewState should be kept smaller than 1K if possible. Just my opinion though. /matthias
I love deadlines. I like the whooshing sound they make as they fly by.
[Douglas Adams] -
azam316 wrote: but will it effect the performance It surely will. ViewState is simply serialized, encrypted (if ViewStateMAC is enabled) data and send to the client. I would not recommend to store a dataset in the viewstate. In fact, in the project I'm working currently on (huge amounts of data here), we're trying to design our code in a way, that there is little or no need for anything being stored in the ViewState. I've read somewhere (but forgot the source) that the ViewState should be kept smaller than 1K if possible. Just my opinion though. /matthias
I love deadlines. I like the whooshing sound they make as they fly by.
[Douglas Adams] -
thanx for your opinion matthias. you made a very interesting point that the ViewState should be kept smaller than 1K if possible. I would like to know that how do i determine the current size of the ViewSate for my page? thanx in advance! ☺«««DTA»»»☺
The most obvious idea that comes to mind is to enable tracing in your ASPX page, by setting the Trace="true" directive at the top of your aspx file. This will give you detailed information about the sizes of your ViewState. hth. /matthias
I love deadlines. I like the whooshing sound they make as they fly by.
[Douglas Adams] -
The most obvious idea that comes to mind is to enable tracing in your ASPX page, by setting the Trace="true" directive at the top of your aspx file. This will give you detailed information about the sizes of your ViewState. hth. /matthias
I love deadlines. I like the whooshing sound they make as they fly by.
[Douglas Adams]