Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot add to the head control
Message
From
06/10/2008 10:44:20
 
 
To
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:
01353009
Views:
26
This message has been marked as a message which has helped to the initial question of the thread.
>>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.

Hi,

You could use Controls.AddAt() instead.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform