Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot add to the head control
Message
From
06/10/2008 09:52:33
 
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01352874
Message ID:
01352997
Views:
16
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform