How to set Page's Title from a web content page in ASP.NET 3.5

后端 未结 7 1443
长情又很酷
长情又很酷 2021-02-15 07:52

I\'ve read through quite a bit of posts/articles on how to do this and I still am not getting the page title set from the content page. My pages render OK except I can\'t get th

7条回答
  •  无人共我
    2021-02-15 08:28

    another solution i used sometimes is to put a contentplaceholder in between the title tags on the master page, then you could use a label control in content tag and render it to that.

    that way you can give the page a title after controls have posted back, for instance.

提交回复
热议问题