Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot add to the head control
Message
De
06/10/2008 09:52:33
 
 
À
06/10/2008 03:50:15
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01352874
Message ID:
01352997
Vues:
15
>Don't replace the existing Head element content - work with it. e.g
>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.

This is a very interesting approach I never even thought about.

Thanks

But, this means I won't be able to control the order of the insertion. Thus, if i have a stylesheet in the head that is already there but I need to insert the BASE HREF from the code, this means the BASE HREF would be after the already inserted stylesheet in the HEAD portion of the page. Thus, the BASE HREF, because it would appear after, won't have any effect on the stylesheet line, thus it will not work.
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform