set property of master page from content page and get that property value from another content page in asp.net

前端 未结 7 861
时光取名叫无心
时光取名叫无心 2021-01-03 01:55

I have a master page with one property name event type. Now I want to set this property from a content page and then that property value should be available to another conte

相关标签:
7条回答
  • 2021-01-03 02:21

    If your pages are from different requests, a master property will not work. The master page is not static, there is a different one for each request, which means that the instance you set the value on is gone when you try to retrieve it. The Session dictionary is where you should put user content that you want to persist between requests.

    0 讨论(0)
提交回复
热议问题