Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding a Head control after the Html control
Message
From
29/11/2011 11:48:41
 
 
To
29/11/2011 10:27:29
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01529963
Message ID:
01529974
Views:
32
The solution was to add the control from the Html control itself:
            Dim loHtmlGenericControl As System.Web.UI.HtmlControls.HtmlGenericControl = Nothing

            ' If we have a Head tag
            If Not oProcess.oPage.Header Is Nothing Then
                oProcess.oHtmlHead = oProcess.oPage.Header
            Else

                ' Find the Html control
                loHtmlGenericControl = oProcess.oPage.FindControl("LXHtml")

                ' If we have a Html tag
                If Not loHtmlGenericControl Is Nothing Then
                    loHtmlGenericControl.Controls.AddAt(0, oProcess.oHtmlHead)
                End If

            End If
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform