2011-06-27 76 views
0

我正在使用runat =「server」的部分中的主標頁中設置元標記的網站上工作。我可以通過Masterpage代碼隱藏屬性更新標題,描述,關鍵字等,但是如何添加或編輯非基本代碼,例如如何動態更改元標記?

我嘗試了以下操作,但它總是返回計數爲0。

Dim header As Web.UI.HtmlControls.HtmlHead 
      header = TryCast(Me.Master.FindControl("headerIdName"), Web.UI.HtmlControls.HtmlHead) 
      Dim count As Integer = header.Controls.Count 

回答