Object Required?

Discussion in '.NET' started by OrangeJuice, Jul 4, 2008.

  1. OrangeJuice

    OrangeJuice

    Joined:
    Jul 4, 2008
    Messages:
    1
    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 (Text):
    <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
     
    OrangeJuice, Jul 4, 2008
    #1
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bucko
    Replies:
    1
    Views:
    354
    Alvin Bruney
    Oct 25, 2003
  2. rob

    Recordset - Object Required

    rob, Jun 7, 2004, in forum: ASP .Net
    Replies:
    6
    Views:
    2,355
    Trevor Benedict R
    Jun 15, 2004
  3. Just D.
    Replies:
    0
    Views:
    506
    Just D.
    Mar 10, 2006
  4. Carolyn Speakman
    Replies:
    1
    Views:
    1,118
    Keith M. Corbett
    Jul 30, 2004
  5. Eric
    Replies:
    0
    Views:
    641
Loading...

Share This Page