母版页标题
我已经尝试这样做了两个小时,谷歌也没有帮助。我想做的是将母版页标题设置为“我的网页”,然后从我想要附加到该标题的子页面中。
我在子页面中尝试过:
this.Title = this.Title + "- About Us";
但这所做的只是将标题设置为“-关于我们”,并且“我的网页”丢失了。有人知道我该怎么做吗?
谢谢
Iv been trying to do this for 2 hours, and google didnt help either. What im trying to do is, set the master page title to "My web page", and then from the child pages i want to append to this title.
I tried in the child page:
this.Title = this.Title + "- About Us";
But all this did was set the title to "- About us" and "My web page" was lost. Anyone please know how i can do this?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许尝试类似
Master.Page.Title
而不是this.Title
Maybe try something like
Master.Page.Title
instead ofthis.Title