HtmlGenericControl hgc1 = new HtmlGenericControl("BASE"); hgc1.Attributes.Add("HREF", oProcess.oApp.cHttp ); loHead.Controls.Add(hgc1);(C# but you get the idea). Make the default Title element runat server and access it directly.
> Public Function GetHeader() As String > Dim lcHeaderHttps As String = "" > Dim loHead As System.Web.UI.HtmlControls.HtmlGenericControl = New System.Web.UI.HtmlControls.HtmlGenericControl() > Dim loStringBuilder As StringBuilder = New StringBuilder() > > ' If we are under Https > If lHeaderHttps Then > lcHeaderHttps = oProcess.oApp.cHttps > End If > > ' Put the BASE HREF in the head > loHead = oProcess.oPage.FindControl("Head") > > loHead.InnerHtml = "<TITLE>" + oProcess.oApp.cTitle + "</TITLE>" + _ > "<BASE HREF=" + oProcess.oApp.cHttp + ">" + _ > "<link rel=""STYLESHEET"" href=""StyleSheet.css"" type=""text/css"">" > > ' If we want the header > If lHeader Then > loStringBuilder.Append("<A HREF=http://localhost/optic/Administration.aspx>Administration</A>") > loStringBuilder.Append("<P>") > End If > > Return loStringBuilder.ToString > End Function >>