Gaps in code when checking View Source?
When we view a classic ASP page of ours in View Source there are gaps appearing in the HTML code, for example this...
<html>
<head>
<%
If not(RS.EOF) Then
RS.move lowcounter
counter = lowcounter
if keyword <> "" and not(rs.eof) then
%>
<title>Children's <%=keyword%> Resources: <%=keyword%> Quick Info, Educational <%=keyword%> Facts, <%=keyword%> related Articles</title>
<meta name="description" content="<%=keyword%>, <%=RS("tags")%>,Popular References for '<%=keyword%>', Fun Learning for Students, '<%=keyword%>' related Activities for Kids, School Fun Activities, '<%=keyword%>' Info Online">
<meta name="keywords" content="Best <%=highcounter%> References for '<%=keyword%>', School '<%=keyword%>' theme Activities, Online '<%=keyword%>' Facts, Popular References for '<%=keyword%>', Online Articles for Children,'<%=keyword%>' related Activities for Kids, School Fun Activities, '<%=keyword%>' related Facts,<%=RS("tags")%>">
<%
metawritten = "Y"
end if
'================================================= ==========
' Start a new IF as meta tags are already written above
' and these were repeated again
If metawritten <> "Y" and not(rs.eof) Then
'================================================= ==========
pagenum = highcounter/10
catNameRaw = RS("category")
if pagenum>1 then metaTitle = "Page " & pagenum & ": "
metaTitle = metaTitle & Replace(catNameRaw, "_", " ")
%>
<%
Select Case catNameRaw
Case "Articles"
metaDesc = "Listing of Articles on Juniors Book, Family Dynamics, Raising Skills, Behavior and Development, Education and Learning, Information for Parents"
Case "News 4 Kids"
metaDesc = "Listing of News 4 Kids on Juniors Book, Recent News, Odd and Weird News, Current Events, News Bulletin, News Bites, Online Edition"
Case "Tell Me Why"
metaDesc = "Listing of Tell Me Why on Juniors Book, Featured Questions, Educational Questions with Answers, Questions Kids Ask, Frequently asked Questions"
Case "This Happened To Me"
metaDesc = "Listing of This Happened To Me on Juniors Book, Experiences of Life, Conditions and Circumstances, Life is Like That"
Case "Funky Stories"
metaDesc = "Listing of Funky Stories on Juniors Book, Stories Online, Story Time, Moral Stories, Fables and Folktales, Collection of Stories"
Case "Travel The Great States"
metaDesc = "Listing of Travel The Great States on Juniors Book, Road Trips, United States Tour and Travel, American Vacations, Discover America"
Case "Games"
metaDesc = "Listing of Games on Juniors Book, Outdoor Games, Educational Games, Games Kids Play, Instructional Games"
Case "Optical Illusion"
metaDesc = "Listing of Optical Illusion on Juniors Book, Optical Illusions, Visual Phenomena, Visually Perceived Objects and Images"
Case "Thinking Skills"
metaDesc = "Listing of Thinking Skills on Juniors Book, Thinking Techniques with Images, Logical Thinking, Critical Thinking, High Probability Thinking, Lateral Thinking, Low Probability Thinking, Sneaky Thinking"
Case "Whodunit"
metaDesc = "Listing of Whodunit on Juniors Book, Detective Fiction, Story Contest, Armchair Detectives, Clue Finders"
Case Else
metaDesc = "Other Pages for " & catNameRaw
End Select
%>
<title><%=metaTitle%> on Junior's Book</title>
<meta name="description" content="<%Response.Write(metaDesc)%>">
<meta name="keywords" content="<%=RS("title")%>:<%=Replace(catNameRaw, "_", " ")%> for <%=Replace(RS("country"), "_", "")%> Kids in <%=Replace(RS("city"), "_", " ")%>: <%=RS("subtitle")%>,<%=RS("tags")%>,<%=Replace(RS( "country"), "_", "")%> Popular <%=Replace(catNameRaw, "_", " ")%>">
<%
'================================================= ==========
' Start a new IF as meta tags are already written above
' and these were repeated again
End If
'================================================= ==========
else
%>
<title>Sorry - No related activity worksheets found! Free PDF format Printable activity Work books,Download free of cost Fun Games for Kids, Learning activity sheets in PDF format,Printable Fun Learning Games</title>
<meta name="description" content="No related Activity Sheets Found,Free activity Sheets for small kids,Learning games online,Free downloadble activity books, Sorry - No related activity worksheets found! Free PDF format Printable activity Work books,Download free of cost Fun Games for Kids, Learning activity sheets in PDF format,Printable Fun Learning Games">
<meta name="keywords" content="Sorry - No related activity worksheets found! Free PDF format Printable activity Work books,Download free of cost Fun Games for Kids, Learning activity sheets in PDF format,Printable Fun Learning Games">
<%
end if
%>
<meta http-equiv="Content-Language" content="EN">
...is appearing as this in View Source:
1
2 <html>
3 <head>
4
5 <title>This Happened To Me on Junior's Book</title>
6 <meta name="description" content="Listing of This Happened To Me on Juniors Book, Experiences of Life, Conditions and Circumstances, Life is Like That">
7 <meta name="keywords" content="A Big Wake-up Call for Me!:This Happened To Me for Kids in : I picked up a gallon of apple juice at local grocery, and on side of the jug it said, Contains Concentrate from China. What the heck...,Big Wake up Call, Made in USA, Tools and kitchenware, Trinkets, Christmas Pajamas, Hanes Sweatshirts, Turtleneck Shirts, JC Pennys Online Catalog, Flip Flops, Popular This Happened To Me">
8
9 <meta http-equiv="Content-Language" content="EN">
Why are there blank lines appearing at lines 1, 4 and 8 in our code?
Appreciate any help offered. Thank you.
NJ
|