I am referring this article regarding Save ViewState on the File System
This is good but not ideal because it stores nothing about which page's viewstate
it is. No mapping seems to be done between a page and it's viewstate
file. I want to be able to use Asp.Net
webforms rich programming model while also get rid of ViewState. I could store it in Session but then it's too expensive. I would rather prefer to store it on filesystem.
One approach I could think of is store Guid
for page in hidden field and store the actual ViewState in filename Guid. This would work however how do I then clean up the directory which would clear out these ViewState files? This would be a pain to create automated service for such simple task and delete these files periodically.
Any thoughts/advises?