Getting asp.net to store viewstate in the session rather than bulking up the html

后端 未结 3 594
悲哀的现实
悲哀的现实 2020-12-18 00:53

I\'m trying to get asp.net to store viewstate in the session rather than bulking up the html.

Now i\'ve read that asp.net comes with the SessionPageStatePersister wh

3条回答
  •  难免孤独
    2020-12-18 01:04

    In order to use your custom PageAdapter class you have to register it with .browser file. You need to add (if you don't already have) a App_Browsers directory. Then add a .browser file with following XML

    
        
            
               
            
        
     
    

    replace {Your adapter type} with your adapter type.

    More information here

    Hope this helps.

提交回复
热议问题