Formatting HTML
- From: "clintonG" <csgallagher@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 26 Aug 2005 09:43:28 -0500
Consider this code:
HtmlMeta meta = new HtmlMeta();
meta.Attributes.Add("description", "whatever, whatever, whatever");
HtmlHead head = (HtmlHead)Page.Header;
head.Controls.Add(meta );
That code writes a meta tag into the head element but it appends the meta
tag declaration to the end of other text located between the head elements.
How do we format the output of the meta tag text so it will begin on a new
line?
// what occurs
<link ... /><meta ... />
// what is desired
<link ... />
<meta... />
<meta... />
<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/
.
- Follow-Ups:
- Re: Formatting HTML
- From: Sparky Arbuckle
- Re: Formatting HTML
- Prev by Date: RE: Session State - lost sporadically and frequently
- Next by Date: Re: What Have I Done?
- Previous by thread: RE: Session Variables work from Page1 to Page2 / lost from Page2 to Pa
- Next by thread: Re: Formatting HTML
- Index(es):
Relevant Pages
|