Hi there to all, I have a site which is built in .aspx. Site is shopping cart i.e. an ecommerce site. it has huge 'VIEWSTATE' code in page source. Can i remove that code without meddling with functionality of site?? if yes, then how?? I only have control-panel and ftp access. I am not .net developer. Thanks
You can check this http://www.aspsnippets.com/Articles...e-ViewState-Hidden-Field-in-ASP.Net-Page.aspx.
If you're not a developer, it's not advisable for you to modify code. It's too easy to remove what looks like something unimportant and cause the whole site to crash.
"agitetech" thanks a lot for sharing such a great source of a view state. Really, i have learned a lot of things form there.
If you're not a coder, I wouldn't try to turn ViewState off, you really need to understand what's going on in each page of the shopping cart to understand if you can turn it off without having any side effects. But to turn it off is really easy, in the page directives you can just state "enableviewstate=false". You might find some objects need it to function properly and some don't and you can just turn it off for the controls that don't need it. That will reduce the amount of ViewState on each page and improve the customer experience.
Viewstate is used to store variables to remember for the page life cycle you should not remove the code if you dont know how to code it. Programmer have done it for storing variables and it might be used somewhere else