Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding a Head control after the Html control
Message
De
29/11/2011 10:27:29
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Adding a Head control after the Html control
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01529963
Message ID:
01529963
Vues:
48
In a .aspx page, I have a Html control. On one application, the Head control is not already there. I can add this control like this:
        Dim loHtmlHead As System.Web.UI.HtmlControls.HtmlHead = New System.Web.UI.HtmlControls.HtmlHead

            ' Add the Head control
            oProcess.oPage.Controls.Add(loHtmlHead)
This will add the control but at the end of the page. So, I looked at the AddAt(), which requires an index. If I put 0, it is added at the very top. But, this is not where I want it as it will preceed the Html tag. I need it right under the Html tag. I have a reference to the Html tag as it is a runat=server control. However, with that reference, I am unable to find a way to get the index of that control.

Or, is there any other way to assure that the loHtmlHead control will be added right under the Html tag/control?
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform