CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Modify HTML Headers?

Print topic Send  topic

Author Message
Suntower

Posts: 225
Posted: 06/02/2011, 6:00 PM

Is there a way to conditionally insert code into the <HEAD> tag? I tried Page_BeforeShow but it puts the code in after the <BODY> tag.

TIA,

---JC
_________________
---On a campaign for more examples and better docs!
View profile  Send private message
datadoit
Posted: 06/02/2011, 6:59 PM

Use a template variable:

http://docs.codecharge.com/studio40/html/Components/Var...mplate.html?toc
Suntower

Posts: 225
Posted: 06/03/2011, 2:58 PM

I don't get it. Can you be a little more specific? How does one write a single <meta> or -whatever- into this variable?

Thanks,

---JC

Quote datadoit:

_________________
---On a campaign for more examples and better docs!
View profile  Send private message
datadoit
Posted: 06/03/2011, 4:41 PM

In your HTML, place your tag such as:

{MyMetaTag}

then in the Page's BeforeShow, define the value for that tag:

HTMLTemplate.SetVar "@MyMetaTag","<meta name='description'
content='hello world' />"

Suntower

Posts: 225
Posted: 06/04/2011, 12:19 AM

THANKS!

Quote datadoit:
In your HTML, place your tag such as:

{MyMetaTag}

then in the Page's BeforeShow, define the value for that tag:

HTMLTemplate.SetVar "@MyMetaTag","<meta name='description'
content='hello world' />"



_________________
---On a campaign for more examples and better docs!
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.