Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Object Required?

Reply
Thread Tools

Object Required?

 
 
OrangeJuice OrangeJuice is offline
Junior Member
Join Date: Jul 2008
Posts: 1
 
      07-04-2008
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>
          <%					
			else
				%>
          <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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Object creation - Do we really need to create a parent for a derieved object - can't the base object just point to an already created base object jon wayne C++ 9 09-22-2005 02:06 AM
Error:Object reference not set to an instance of an object. Suresh Kojhani ASP .Net 1 07-29-2004 12:10 PM
Error !Object reference not set to an instance of an object. !!! Help Parthiv Joshi ASP .Net 2 07-02-2004 10:28 AM
Object reference not set to an instance of an object. yysiow ASP .Net 1 07-12-2003 03:30 PM
Object reference not set to an instance of an object. Chris Fink ASP .Net 2 07-03-2003 06:48 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57