Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的主页面“登录/注册”上有一个超链接。我希望在用户完成登录后将所有内容页面上的此超链接文本更改为“注销”并更改 URL。我还需要在 20 之后将其更改回来min-在哪里声明这个?
谢谢
您可以在母版页中创建属性。您将从需要转换为正确类型(即母版页的类型)的子页面获取母版页对象,然后您将能够访问母版页的属性。
此属性将为您提供有关用户状态的信息,您将能够与子页面通信并使用此属性传递数据。