这个标题应该不那么贴切,但在ASP.NET 2.0中,可以很方便地动态改变页面的标题了,比如可以这样了
this.Header.Title = "This is the new page title.";

还可以动态改变css等了,如下两例
Style style = new Style();
style.ForeColor = System.Drawing.Color.Navy;
style.BackColor = System.Drawing.Color.LightGray;

this.Header.StyleSheet.CreateStyleRule(style, null, "body");

HtmlLink link = new HtmlLink();
link.Attributes.Add("type", "text/css");
link.Attributes.Add("rel", "stylesheet");
link.Attributes.Add("href", "~/newstyle.css");
this.Header.Controls.Add(link);

相关文章:

  • 2021-09-17
  • 2021-12-09
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2021-10-30
  • 2021-07-27
  • 2022-03-09
猜你喜欢
  • 2022-01-12
  • 2021-11-28
  • 2021-10-29
  • 2022-01-17
  • 2022-02-28
  • 2021-08-13
相关资源
相似解决方案