在asp.net 2.0里,可以支持动态访问meta 标记了,比如可以动态增加关键字了Private Sub CreateMetaTags()
Dim hm As New HtmlMeta()
Dim head As HtmlHead = CType(Page.Header, HtmlHead)
hm.Name = "Keywords"
hm.Content = "VB.Net, VB.NET, .NET"
head.Controls.Add(hm)
End Sub
Copyright @ 2024 jackyrong的世界 Powered by .NET 9.0 on Kubernetes Powered by: .Text and ASP.NET Theme by: .NET Monster