Maintain the state of dynamically added user control on postback?

前端 未结 4 2261
醉酒成梦
醉酒成梦 2020-12-06 20:31

I have a user control that contains only a text box and on another form I add this user control dynamically, a user can add the user control many times. I use a session vari

4条回答
  •  醉话见心
    2020-12-06 21:10

    Use the object cache. Add the usercontrol into the cache and retrieve it when you need it.

    You can see a nice example of how this works at: ASP.net-Tutorials Cache and Object Cache.

    I am also learning asp.net now and found that quite a nice explanation. I also used the Microsoft Library

提交回复
热议问题