Access body element from content page via a nested master page

前端 未结 2 2343
遇见更好的自我
遇见更好的自我 2021-02-16 00:15

All I want to do is access the element from the code-behind of a content page and add a class name to it.

I have a top-level master page with t

2条回答
  •  南旧
    南旧 (楼主)
    2021-02-16 00:23

    I would add a public property to the code behind of the master page that would allow access to the body tag that is part of the master page. And then call that property from the content page.

提交回复
热议问题