Object Required?

Joined
Jul 4, 2008
Messages
1
Reaction score
0
Hello,

I have a script on my homepage which displays news, however when viewed using Internet Explorer (not firefox) an error icon is shown which states an object is required on line 56 char 6.

I have very limited asp knowledge, and was wondering if anyone could give me some guidance.

Many thanks:

Code:
<ul class="colon_list" ><%
		dim counter2
		counter2 = 8
		dim max
		max = Cint(cnt.Fields.Item(0))
		do until counter2 = max or rs.EOF
			if 	DateDiff("d" , rs.Fields.Item(3),"01/10/2006")<0 then								
				%>
          <li><a href="show_news.asp?language_news=<%= rs.Fields.Item(0) %>"><%= rs.Fields.Item(3) & " - " & replace(rs.Fields.Item(1), "&", "&amp;" ) %></a></li>
          <%					
			[COLOR="Red"]else[/COLOR]
				%>
          <li><a href="show_news.asp?id=<%= rs.Fields.Item(0) %>"><%= rs.Fields.Item(3) & " - " & replace(rs.Fields.Item(1), "&", "&amp;" ) %></a></li>
          <%	
			end if
		
			counter2 = counter2 + 1
			rs.MoveNext
		loop
	%></ul>

Line 56 is 'else' shown in red here
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top